* when GET, unset the sessionVar.

This commit is contained in:
wangchunsheng
2010-11-13 05:55:18 +00:00
parent a36426472b
commit 4afe4c2373

View File

@@ -1159,10 +1159,11 @@ class router
*/
public function setParamsByGET($defaultParams)
{
/* Unset the moduleVar, methodVar and viewVar, all the left are the params. */
/* Unset the moduleVar, methodVar, viewVar and session var, all the left are the params. */
unset($_GET[$this->config->moduleVar]);
unset($_GET[$this->config->methodVar]);
unset($_GET[$this->config->viewVar]);
unset($_GET[$this->config->sessionVar]);
$this->params = $this->mergeParams($defaultParams, $_GET);
}