Skip to content

Commit

Permalink
Issue 0000619: bad result of cookie_path() function
Browse files Browse the repository at this point in the history
Manage gallery install on directly on root directory


git-svn-id: http://piwigo.org/svn/trunk@2010 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
rub committed May 14, 2007
1 parent 13bd2ae commit badf551
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/functions_cookie.inc.php
Expand Up @@ -63,7 +63,10 @@ function cookie_path()
$scr = substr($scr,0,strrpos( $scr,'/'));

// add a trailing '/' if needed
$scr .= ($scr{strlen($scr)-1} == '/') ? '' : '/';
if ((strlen($scr) == 0) or ($scr{strlen($scr)-1} !== '/'))
{
$scr .= '/';
}

if ( substr(PHPWG_ROOT_PATH,0,3)=='../')
{ // this is maybe a plugin inside pwg directory
Expand Down

0 comments on commit badf551

Please sign in to comment.