Changeset 2011


Ignore:
Timestamp:
May 14, 2007, 11:09:21 PM (18 years ago)
Author:
rub
Message:

Issue 0000619: bad result of cookie_path() function

Manage gallery install on directly on root directory

Apply modifications from BSF (2006) ;-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_7/include/functions_session.inc.php

    r2007 r2011  
    114114
    115115  // add a trailing '/' if needed
    116   $scr .= ($scr{strlen($scr)-1} == '/') ? '' : '/';
     116  if ((strlen($scr) == 0) or ($scr{strlen($scr)-1} !== '/'))
     117  {
     118    $scr .= '/';
     119  }
    117120 
    118121  if ( substr(PHPWG_ROOT_PATH,0,3)=='../')
Note: See TracChangeset for help on using the changeset viewer.