mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-08 14:25:02 +02:00
bug fixed: add the check of non emptiness on $_SERVER['PATH_INFO'] (and not
only its existence) before using it in strpos. git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1429 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user