Welcome Guest, Not a member yet? Register   Sign In
Running stripslashes on all $_POST in all controllers
#2

[eluser]n0xie[/eluser]
Either use a hook or just dump it into the index.php
Code:
if (get_magic_quotes_gpc()) {
    function magicQuotes_awStripslashes(&$value, $key) {$value = stripslashes($value);}
    $gpc = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
    array_walk_recursive($gpc, 'magicQuotes_awStripslashes');
}


Messages In This Thread
Running stripslashes on all $_POST in all controllers - by El Forum - 06-21-2010, 08:43 AM
Running stripslashes on all $_POST in all controllers - by El Forum - 06-21-2010, 08:47 AM
Running stripslashes on all $_POST in all controllers - by El Forum - 06-21-2010, 08:57 AM
Running stripslashes on all $_POST in all controllers - by El Forum - 06-21-2010, 10:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB