// Fix #PSCFV-4361
This commit is contained in:
1 parent
ae72d98724
commit
8448ff5a39
1 file changed
+7
-1
@@ -42,7 +42,13 @@ if (substr($memory_limit,-1) != 'G'
|
|||||||
|
|
||||||
// redefine REQUEST_URI if empty (on some webservers...)
|
// redefine REQUEST_URI if empty (on some webservers...)
|
||||||
if (!isset($_SERVER['REQUEST_URI']) || $_SERVER['REQUEST_URI'] == '')
|
if (!isset($_SERVER['REQUEST_URI']) || $_SERVER['REQUEST_URI'] == '')
|
||||||
$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'];
|
{
|
||||||
|
if (!isset($_SERVER['SCRIPT_NAME']) && isset($_SERVER['SCRIPT_FILENAME']))
|
||||||
|
$_SERVER['SCRIPT_NAME'] = $_SERVER['SCRIPT_FILENAME'];
|
||||||
|
else
|
||||||
|
$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'];
|
||||||
|
}
|
||||||
|
|
||||||
if ($tmp = strpos($_SERVER['REQUEST_URI'], '?'))
|
if ($tmp = strpos($_SERVER['REQUEST_URI'], '?'))
|
||||||
$_SERVER['REQUEST_URI'] = substr($_SERVER['REQUEST_URI'], 0, $tmp);
|
$_SERVER['REQUEST_URI'] = substr($_SERVER['REQUEST_URI'], 0, $tmp);
|
||||||
$_SERVER['REQUEST_URI'] = str_replace('//', '/', $_SERVER['REQUEST_URI']);
|
$_SERVER['REQUEST_URI'] = str_replace('//', '/', $_SERVER['REQUEST_URI']);
|
||||||
|
|||||||
Reference in new issue
Block a user