* remove urlencode.

This commit is contained in:
wangyidong
2017-02-14 13:39:43 +08:00
parent ef2cc89e5a
commit a32496e911
+2 -2
View File
@@ -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;
}