什么是最好的PHP輸入消毒功能?我正試圖想出一個函數,我可以傳遞我所有的字符串通過消毒。因此,從其中取出的字符串對于數據庫插入是安全的。但是有那么多濾波函數在那里,我不確定我應該使用[需要]哪些。請幫我填空:function filterThis($string) {
$string = mysql_real_escape_string($string);
$string = htmlentities($string);
etc...
return $string;}
- 3 回答
- 0 關注
- 516 瀏覽
添加回答
舉報
0/150
提交
取消