PHP xss漏洞

php怎么修复xss漏洞

九三
251
2021-02-07 16:37:34
栏目: 编程语言
PHP开发者专用服务器,限时0元免费领! 查看>>

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))));

亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>

相关推荐:如何修复xss漏洞

0
看了该问题的人还看了