Skip to content
Extraits de code Groupes Projets
Valider 2798c071 rédigé par Antoine Pitrou's avatar Antoine Pitrou
Parcourir les fichiers

$INSECURE

parent 23d41a53
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -38,12 +38,13 @@ if ($unquote_gpc) {
$INSECURE = array();
function feed_globals($table) {
function feed_globals($table, $insecure = true) {
global $INSECURE;
if (is_array($GLOBALS[$table])) {
reset($GLOBALS[$table]);
while (list($key, $val) = each($GLOBALS[$table])) {
$GLOBALS[$key] = $INSECURE[$key] = $val;
$GLOBALS[$key] = $val;
if ($insecure) $INSECURE[$key] = $val;
}
}
}
......@@ -51,7 +52,7 @@ function feed_globals($table) {
feed_globals('HTTP_GET_VARS');
feed_globals('HTTP_POST_VARS');
feed_globals('HTTP_COOKIE_VARS');
feed_globals('HTTP_SERVER_VARS');
feed_globals('HTTP_SERVER_VARS', false);
//
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter