用 htmlentities 和 htmlspecialchars 只能防止XSS攻擊,不能防止SQL隱碼攻擊。 $title = htmlspecialchars($_POST['title'], ENT_QUOTES);. 改用PHP的filter_var 過濾器亦 ...
確定! 回上一頁