Move magic_quotes_gpc to index.php

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@444 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2008-08-16 09:27:51 +00:00
parent a21a0e4311
commit 7d09bd7e34
2 changed files with 16 additions and 17 deletions

View File

@@ -297,19 +297,3 @@ function shorten_utf8($string, $length) {
}
return nl2br(htmlspecialchars($string));
}
if (get_magic_quotes_gpc()) {
$process = array(&$_GET, &$_POST);
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)] = stripslashes($v);
}
}
}
unset($process);
}