* Finish task #8047.

This commit is contained in:
holan20180123
2020-09-30 11:44:26 +08:00
parent f802c93bde
commit b8cd16bb07
2 changed files with 4 additions and 6 deletions
+3
View File
@@ -1771,6 +1771,9 @@ class baseRouter
$params = $_GET;
}
/* Fix bug #3267. Param 'words' is not validated when searching. */
if($this->rawModule == 'search' and $this->rawMethod == 'index') unset($params['words']);
$this->params = $this->mergeParams($defaultParams, $params);
}
+1 -6
View File
@@ -552,6 +552,7 @@ class router extends baseRouter
/* 如果请求的方法名不是browse、create、edit、view、delete、export中的任何一个,则需要添加action参数来传递请求的方法名。 */
/* If the requested method name is not any of browse, create, edit, view, delete, or export, you need to add an action parameter to pass the requested method name. */
if(isset($this->config->workflowaction->default->actions) and !in_array($this->rawMethod, $this->config->workflowaction->default->actions)) $passedParams['action'] = $this->rawMethod;
/* 添加module参数来传递请求的模块名。 */
/* Add the module parameter to pass the requested module name. */
$passedParams['module'] = $this->rawModule;
@@ -559,12 +560,6 @@ 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']);