false alarm, the code is correct at this place

This commit is contained in:
Marc Delisle
2006-09-27 16:04:30 +00:00
parent 8f8a2e179f
commit 4c71e900e2

View File

@@ -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
*/