Reply To: adds slashes

Home Forums Pie-Register 2.0 Support adds slashes Reply To: adds slashes

#4494

Hasnain Abbas
Keymaster

Hello,

Please ask your host to disable magic_quotes_gpc on your hosting, if this is not an option for you, you will need to add the following snippet:

if (get_magic_quotes_gpc()) {
    $process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
    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);
}

Thanks