Issue 0000619: bad result of cookie_path() function

Manage gallery install on directly on root directory

Apply modifications from BSF (2006) ;-)

git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2011 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub
2007-05-14 21:09:21 +00:00
parent 2f9084b5e9
commit 13a7e043ac
+4 -1
View File
@@ -113,7 +113,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