From fc02bfed53bc2549b3a7e889a610b6be4c522935 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Thu, 4 May 2006 09:28:32 +0000 Subject: #61368 by chx, don't unset the global globals array. --- includes/bootstrap.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 14b0e7907..413c863e9 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -136,7 +136,7 @@ function conf_path() { */ function drupal_unset_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) { if (!isset($allowed[$key])) { unset($GLOBALS[$key]); -- cgit v1.2.3