* change for filter super vars.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user