<?phpset_magic_quotes_runtime(false);ini_set('magic_quotes_gpc',0);ini_set('magic_quotes_runtime',0);echo $_GET['a'];这样。访问a.php?a=1'\输出的还是l\'\\
2 回答
守着一只汪
TA贡献1872条经验 获得超4个赞
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);
}- 2 回答
- 0 关注
- 151 浏览
添加回答
举报
0/150
提交
取消
