From 1376e7667c166c00e713cbc19bec03fb05a42389 Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Mon, 11 Sep 2023 14:10:27 +0800 Subject: [PATCH] - Reset commit. --- framework/base/router.class.php | 1 - lib/base/filter/filter.class.php | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/framework/base/router.class.php b/framework/base/router.class.php index 64db3795f6..e3444e5e77 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -691,7 +691,6 @@ class baseRouter $_POST = validater::filterSuper($_POST); $_GET = validater::filterSuper($_GET); $_COOKIE = validater::filterSuper($_COOKIE); - $_SERVER = validater::filterSuper($_SERVER); /* Filter common get and cookie vars. */ if($this->config->framework->filterParam == 2) diff --git a/lib/base/filter/filter.class.php b/lib/base/filter/filter.class.php index 74413a0f7c..78be1a0b93 100644 --- a/lib/base/filter/filter.class.php +++ b/lib/base/filter/filter.class.php @@ -661,11 +661,11 @@ class baseValidater global $config; if(empty($config->framework->filterXSS)) return $var; - if(stripos($var, '<script') !== false || stripos($var, '