Fixes #1565
git-svn-id: https://develop.svn.wordpress.org/trunk@2769 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9ae33f4f18
commit
3d4c635b64
|
@ -4,8 +4,9 @@ $REMOTE_ADDR = getenv('REMOTE_ADDR'); /* visitor's IP */
|
||||||
$HTTP_USER_AGENT = getenv('HTTP_USER_AGENT'); /* visitor's browser */
|
$HTTP_USER_AGENT = getenv('HTTP_USER_AGENT'); /* visitor's browser */
|
||||||
|
|
||||||
// Turn register globals off - Christian Schmidt
|
// Turn register globals off - Christian Schmidt
|
||||||
foreach ( array_merge($_REQUEST, $_SERVER, $_ENV) as $name => $value )
|
if ( ini_get('register_globals') )
|
||||||
unset($$name);
|
foreach ( array_merge($_REQUEST, $_SERVER, $_ENV) as $name => $value )
|
||||||
|
unset($name, $value);
|
||||||
|
|
||||||
// Fix for IIS, which doesn't set REQUEST_URI
|
// Fix for IIS, which doesn't set REQUEST_URI
|
||||||
if ( empty( $_SERVER['REQUEST_URI'] ) ) {
|
if ( empty( $_SERVER['REQUEST_URI'] ) ) {
|
||||||
|
|
Loading…
Reference in New Issue