Commit fc02bfed authored by drumm's avatar drumm
Browse files

#61368 by chx, don't unset the global globals array.

parent 781880de
...@@ -136,7 +136,7 @@ function conf_path() { ...@@ -136,7 +136,7 @@ function conf_path() {
*/ */
function drupal_unset_globals() { function drupal_unset_globals() {
if (ini_get('register_globals')) { if (ini_get('register_globals')) {
$allowed = array('_ENV' => 1, '_GET' => 1, '_POST' => 1, '_COOKIE' => 1, '_FILES' => 1, '_SERVER' => 1, '_REQUEST' => 1, 'access_check' => 1); $allowed = array('_ENV' => 1, '_GET' => 1, '_POST' => 1, '_COOKIE' => 1, '_FILES' => 1, '_SERVER' => 1, '_REQUEST' => 1, 'access_check' => 1, 'GLOBALS' => 1);
foreach ($GLOBALS as $key => $value) { foreach ($GLOBALS as $key => $value) {
if (!isset($allowed[$key])) { if (!isset($allowed[$key])) {
unset($GLOBALS[$key]); unset($GLOBALS[$key]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment