That last thing didn't work at all.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2770 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9689a19f00
commit
2919fe2956
|
@ -3,10 +3,16 @@ $HTTP_HOST = getenv('HTTP_HOST'); /* domain name */
|
||||||
$REMOTE_ADDR = getenv('REMOTE_ADDR'); /* visitor's IP */
|
$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
|
||||||
if ( ini_get('register_globals') )
|
if ( ini_get('register_globals') ) {
|
||||||
foreach ( array_merge($_REQUEST, $_SERVER, $_ENV) as $name => $value )
|
$superglobals = array($_SERVER, $_ENV, $_FILES, $_COOKIE, $_POST, $_GET);
|
||||||
unset($name, $value);
|
if ( isset($_SESSION) )
|
||||||
|
array_unshift($superglobals, $_SESSION);
|
||||||
|
|
||||||
|
foreach ( $superglobals as $superglobal )
|
||||||
|
foreach ( $superglobal as $global => $value )
|
||||||
|
unset( $GLOBALS[$global] );
|
||||||
|
}
|
||||||
|
|
||||||
// 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