mirror of
https://github.com/vrana/adminer.git
synced 2025-11-17 18:40:40 +01:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user