分页组件xss修复
parent
98639f65a5
commit
2f85c5180d
|
|
@ -75,8 +75,13 @@ class Page
|
||||||
{
|
{
|
||||||
if(!in_array($k, $this->not_fields) && !is_array($v))
|
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)
|
if($tmp)
|
||||||
{
|
{
|
||||||
$this->url .= ($state === false) ? '?' : '&';
|
$this->url .= ($state === false) ? '?' : '&';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue