Changeset 2010


Ignore:
Timestamp:
May 14, 2007, 11:08:53 PM (17 years ago)
Author:
rub
Message:

Issue 0000619: bad result of cookie_path() function

Manage gallery install on directly on root directory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_cookie.inc.php

    r2006 r2010  
    6464
    6565  // add a trailing '/' if needed
    66   $scr .= ($scr{strlen($scr)-1} == '/') ? '' : '/';
     66  if ((strlen($scr) == 0) or ($scr{strlen($scr)-1} !== '/'))
     67  {
     68    $scr .= '/';
     69  }
    6770 
    6871  if ( substr(PHPWG_ROOT_PATH,0,3)=='../')
Note: See TracChangeset for help on using the changeset viewer.