mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 10:04:07 +02:00
Function parse_str respects magic_quotes_gpc (bug #3034575)
This commit is contained in:
@@ -38,21 +38,7 @@ if (!ini_bool("session.auto_start")) {
|
||||
}
|
||||
|
||||
// disable magic quotes to be able to use database escaping function
|
||||
if (get_magic_quotes_gpc()) {
|
||||
$process = array(&$_GET, &$_POST, &$_COOKIE);
|
||||
while (list($key, $val) = each($process)) {
|
||||
foreach ($val as $k => $v) {
|
||||
unset($process[$key][$k]);
|
||||
if (is_array($v)) {
|
||||
$process[$key][stripslashes($k)] = $v;
|
||||
$process[] = &$process[$key][stripslashes($k)];
|
||||
} else {
|
||||
$process[$key][stripslashes($k)] = ($filter ? $v : stripslashes($v));
|
||||
}
|
||||
}
|
||||
}
|
||||
unset($process);
|
||||
}
|
||||
remove_slashes(array(&$_GET, &$_POST, &$_COOKIE));
|
||||
if (function_exists("set_magic_quotes_runtime")) {
|
||||
set_magic_quotes_runtime(false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user