Changeset 2771

Show
Ignore:
Timestamp:
08/09/05 20:14:58 (3 years ago)
Author:
matt
Message:

Backport from 1.6

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.5/wp-settings.php

    r2516 r2771  
    1212        $_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING']; 
    1313    } 
     14} 
     15 
     16// Turn register globals off 
     17if ( ini_get('register_globals') ) { 
     18   $superglobals = array($_SERVER, $_ENV, $_FILES, $_COOKIE, $_POST, $_GET); 
     19   if ( isset($_SESSION) ) 
     20        array_unshift($superglobals, $_SESSION); 
     21 
     22   foreach ( $superglobals as $superglobal ) 
     23       foreach ( $superglobal as $global => $value ) 
     24           unset( $GLOBALS[$global] ); 
    1425} 
    1526