section31 on 07/06/08
Last Edited at 07/06/08 02:46am
if (get_magic_quotes_gpc()) { function _strip_quotes(&$var) { if (is_array($var)) { array_walk($var, '_strip_quotes'); } else { $var = stripslashes($var); } } foreach (array('GET','POST','COOKIE') as $v) { if (!empty(${"_".$v})) { array_walk(${"_".$v}, '_strip_quotes'); } }}
Report this snippet Tweet
Comment:
You need to login to post a comment.