All pastes #385008 Raw Edit

jmut

public php v1 · immutable
·published 2007-03-07 15:02 UTC
rendered paste body
if (get_magic_quotes_gpc()) {    $in = array(&$_GET, &$_POST, &$_COOKIE);    while (list($k,$v) = each($in)) {        foreach ($v as $key => $val) {            if (!is_array($val)) {                $in[$k][$key] = stripslashes($val);                continue;            }            $in[] =& $in[$k][$key];        }    }    unset($in);}