Whitespace
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1228 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
be49e08bb4
commit
10b7f135a5
|
@ -55,19 +55,19 @@ session_start();
|
||||||
|
|
||||||
// disable magic quotes to be able to use database escaping function
|
// disable magic quotes to be able to use database escaping function
|
||||||
if (get_magic_quotes_gpc()) {
|
if (get_magic_quotes_gpc()) {
|
||||||
$process = array(&$_GET, &$_POST, &$_COOKIE);
|
$process = array(&$_GET, &$_POST, &$_COOKIE);
|
||||||
while (list($key, $val) = each($process)) {
|
while (list($key, $val) = each($process)) {
|
||||||
foreach ($val as $k => $v) {
|
foreach ($val as $k => $v) {
|
||||||
unset($process[$key][$k]);
|
unset($process[$key][$k]);
|
||||||
if (is_array($v)) {
|
if (is_array($v)) {
|
||||||
$process[$key][stripslashes($k)] = $v;
|
$process[$key][stripslashes($k)] = $v;
|
||||||
$process[] = &$process[$key][stripslashes($k)];
|
$process[] = &$process[$key][stripslashes($k)];
|
||||||
} else {
|
} else {
|
||||||
$process[$key][stripslashes($k)] = ($filter ? $v : stripslashes($v));
|
$process[$key][stripslashes($k)] = ($filter ? $v : stripslashes($v));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unset($process);
|
unset($process);
|
||||||
}
|
}
|
||||||
if (function_exists("set_magic_quotes_runtime")) {
|
if (function_exists("set_magic_quotes_runtime")) {
|
||||||
set_magic_quotes_runtime(false);
|
set_magic_quotes_runtime(false);
|
||||||
|
|
Loading…
Reference in a new issue