From 2b6c63cccf64fda613127ef0410aeaccad67657b Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 3 Jul 2006 22:58:19 +0000 Subject: merge -r1428:1429 from branch 1.6 to trunk (bug fixed: check of non emptiness on $_SERVER['PATH_INFO']) git-svn-id: http://piwigo.org/svn/trunk@1430 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_session.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions_session.inc.php b/include/functions_session.inc.php index 48271af6e..9768bf927 100644 --- a/include/functions_session.inc.php +++ b/include/functions_session.inc.php @@ -87,7 +87,7 @@ function cookie_path() if ( isset($_SERVER['REDIRECT_URL']) ) { // mod_rewrite is activated for upper level directories. we must set the // cookie to the path shown in the browser otherwise it will be discarded. - if ( isset($_SERVER['PATH_INFO']) ) + if ( isset($_SERVER['PATH_INFO']) and !empty($_SERVER['PATH_INFO']) ) { $idx = strpos( $_SERVER['REDIRECT_URL'], $_SERVER['PATH_INFO'] ); if ($idx !== false) -- cgit v1.2.3