From a32496e9114d015910e9663c0808873460f5a034 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 14 Feb 2017 13:39:43 +0800 Subject: [PATCH] * remove urlencode. --- framework/base/router.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/base/router.class.php b/framework/base/router.class.php index bd1b54f2ef..560a202c20 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -1216,7 +1216,7 @@ class baseRouter */ public function setModuleName($moduleName = '') { - $moduleName = strip_tags(urldecode(strtolower($moduleName))); + $moduleName = strip_tags(strtolower($moduleName)); if(!preg_match('/^[a-zA-Z0-9]+$/', $moduleName)) $this->triggerError("The modulename '$moduleName' illegal. ", __FILE__, __LINE__, $exit = true); $this->moduleName = $moduleName; } @@ -1251,7 +1251,7 @@ class baseRouter */ public function setMethodName($methodName = '') { - $methodName = strip_tags(urldecode(strtolower($methodName))); + $methodName = strip_tags(strtolower($methodName)); if(!preg_match('/^[a-zA-Z0-9]+$/', $methodName)) $this->triggerError("The methodname '$methodName' illegal. ", __FILE__, __LINE__, $exit = true); $this->methodName = $methodName; }