php怎么修复xss漏洞
使用php对xss漏洞进行修复,具体方法如下:
function search($query, $page)
{
global $db, $bgcolor2, $bgcolor4, $sitename, $io_db, $module_url, $list_page_items, $hm_index;
$option = trim($option);
$query = trim($query);
$query = FixQuotes(nl2br(filter_text($query)));
$db->escape_string($query);
$db->escape_string($option);
alpha_search($query);
$query = FixQuotes(nl2br(filter_text(htmlentities($query))));
版权声明
本文仅代表作者观点,不代表米安网络立场。
上一篇:RabbitMQ的消息发布与订阅模型是什么 下一篇:如何查看php的安装目录
发表评论:
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。