分页组件xss修复

feat/task1-c-wallet
gongfuxiang 2022-01-25 15:54:57 +08:00
parent 98639f65a5
commit 2f85c5180d
1 changed files with 7 additions and 2 deletions

View File

@ -75,8 +75,13 @@ class Page
{
if(!in_array($k, $this->not_fields) && !is_array($v))
{
if($k == 'page') continue;
if($k == 'page')
{
continue;
}
$k = htmlspecialchars($k);
$v = htmlspecialchars($v);
if($tmp)
{
$this->url .= ($state === false) ? '?' : '&';