您好,欢迎访问一九零五行业门户网

php怎么关闭自动过滤输入和输出


这样。访问a.php?a=1'\
输出的还是l\'\\
怎么能自动关闭?
不使用stripslashes
回复内容:
这样。访问a.php?a=1'\
输出的还是l\'\\
怎么能自动关闭?
不使用stripslashes
if (get_magic_quotes_gpc()) { function stripslashes_deep($value) { $value = is_array($value) ? array_map(’stripslashes_deep’, $value) : stripslashes($value); return $value; } $_post = array_map(’stripslashes_deep’, $_post); $_get = array_map(’stripslashes_deep’, $_get); $_cookie = array_map(’stripslashes_deep’, $_cookie);}
其它类似信息

推荐信息