diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-09-03 07:08:24 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-09-03 07:08:24 +0000 |
commit | e86c36cb5b21cf045c0ba53a9e6b7f5ecc9d9cd9 (patch) | |
tree | 08b2e0a116b5c9f39171bfea989ef5c6829b2e32 | |
parent | a3ac4ebe6490603eedccfa6adfd2c95a6fddf57a (diff) | |
download | brdo-e86c36cb5b21cf045c0ba53a9e6b7f5ecc9d9cd9.tar.gz brdo-e86c36cb5b21cf045c0ba53a9e6b7f5ecc9d9cd9.tar.bz2 |
#80887 by chx. Fix a bug with superglobal cleaning.
-rw-r--r-- | includes/bootstrap.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index d0deec608..fe36c53b6 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -140,7 +140,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, 'GLOBALS' => 1); - foreach ($GLOBALS as $key) { + foreach ($GLOBALS as $key => $value) { if (!isset($allowed[$key])) { unset($GLOBALS[$key]); } |