From 4c71e900e255edfc44e7bf840edc8627416bc00a Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 27 Sep 2006 16:04:30 +0000 Subject: [PATCH] false alarm, the code is correct at this place --- libraries/common.lib.php | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 5de98c785..8a40534fb 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -2689,6 +2689,16 @@ if (isset($_REQUEST['GLOBALS']) || isset($_FILES['GLOBALS']) die('GLOBALS overwrite attempt'); } +/** + * Check for numeric keys + * (if register_globals is on, numeric key can be found in $GLOBALS) + */ + +foreach ($GLOBALS as $key => $dummy) { + if (is_numeric($key)) { + die('numeric key detected'); + } +} /** * just to be sure there was no import (registering) before here @@ -2741,17 +2751,6 @@ if (get_magic_quotes_gpc()) { PMA_arrayWalkRecursive($_REQUEST, 'stripslashes', true); } -/** - * Check for numeric keys - * (if register_globals is on, numeric key can be found in $GLOBALS) - */ - -foreach ($GLOBALS as $key => $dummy) { - if (is_numeric($key)) { - die('numeric key detected'); - } -} - /** * include deprecated grab_globals only if required */