* change for filter super vars.

This commit is contained in:
wangyidong
2015-11-04 14:17:20 +08:00
parent 394a407ec0
commit 513c49f855
2 changed files with 69 additions and 3 deletions
+18 -2
View File
@@ -4,7 +4,7 @@
*
* The author disclaims copyright to this source code. In place of
* a legal notice, here is a blessing:
*
*
* May you do good and not evil.
* May you find forgiveness for yourself and forgive others.
* May you share freely, never taking more than you give.
@@ -12,7 +12,7 @@
/**
* The router class.
*
*
* @package framework
*/
class router
@@ -292,6 +292,7 @@ class router
$this->setModuleRoot();
$this->setThemeRoot();
$this->filterSuperVars();
$this->setSuperVars();
$this->loadConfig('common');
@@ -468,6 +469,21 @@ class router
$this->themeRoot = $this->appRoot . 'www' . $this->pathFix . 'theme' . $this->pathFix;
}
/**
* Filter superVars.
*
* @access public
* @return void
*/
public function filterSuperVars()
{
$_POST = processArrayEvils($_POST);
$_GET = processArrayEvils($_GET);
$_COOKIE = processArrayEvils($_COOKIE);
unset($_GLOBALS);
unset($_REQUEST);
}
/**
* Set the super vars.
*