From 8b01be5b0c2e2b158e865ca1539a322e3bf41783 Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Thu, 17 Sep 2020 14:14:26 +0800 Subject: [PATCH] * Finish task #7982. --- framework/router.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/framework/router.class.php b/framework/router.class.php index 1e0defae6a..a5b8c3a5d5 100755 --- a/framework/router.class.php +++ b/framework/router.class.php @@ -568,6 +568,12 @@ class router extends baseRouter $passedParams = array_reverse($passedParams); } + /* Fix bug #3267. Param 'words' is not validated when searching. */ + if($this->rawModule == 'search' and $this->rawMethod == 'index') + { + unset($passedParams['words']); + } + /* display参数用来标记请求是否来自禅道客户端的卡片展示页面,此处应该删掉以避免对方法调用产生影响。 */ /* The display parameter is used to mark whether the request comes from the card display page of the ZenTao client. It should be deleted here to avoid affecting the method call. */ unset($passedParams['display']);