Commit 81565fda authored by Kjartan's avatar Kjartan

- Fixing magic_gpc fix.

parent e06cdc57
......@@ -144,14 +144,16 @@ function throttle($type, $rate) {
function _fix_gpc_magic(&$item, $key) {
if (is_array($item)) {
array_walk($item, '_fix_gpc_magic_array');
array_walk($item, '_fix_gpc_magic');
}
else {
$item = stripslashes($i);
}
$item = stripslashes($i);
}
function fix_gpc_magic() {
static $fixed = false;
if ($fixed && ini_get("magic_quotes_gpc")) {
if (!$fixed && ini_get("magic_quotes_gpc")) {
array_walk($_GET, '_fix_gpc_magic');
array_walk($_POST, '_fix_gpc_magic');
array_walk($_COOKIE, '_fix_gpc_magic');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment