git-svn-id: http://svn.automattic.com/wordpress/trunk@2769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-08-09 20:00:29 +00:00
parent 877e6a711a
commit 9689a19f00

View File

@ -4,8 +4,9 @@ $REMOTE_ADDR = getenv('REMOTE_ADDR'); /* visitor's IP */
$HTTP_USER_AGENT = getenv('HTTP_USER_AGENT'); /* visitor's browser */
// Turn register globals off - Christian Schmidt
foreach ( array_merge($_REQUEST, $_SERVER, $_ENV) as $name => $value )
unset($$name);
if ( ini_get('register_globals') )
foreach ( array_merge($_REQUEST, $_SERVER, $_ENV) as $name => $value )
unset($name, $value);
// Fix for IIS, which doesn't set REQUEST_URI
if ( empty( $_SERVER['REQUEST_URI'] ) ) {