<?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 關注
- 140 瀏覽
添加回答
舉報
0/150
提交
取消
