Fix session errors that occur when filtering detects a problem by moving filtering to the end of
incl.php and after we setup the session.
This commit is contained in:
@@ -81,11 +81,6 @@ if(isset($_REQUEST['mode']))
|
|||||||
}
|
}
|
||||||
/* End backwards compatibility code */
|
/* End backwards compatibility code */
|
||||||
|
|
||||||
|
|
||||||
// include filter.php to filter all REQUEST input
|
|
||||||
require(BASE."include/filter.php");
|
|
||||||
|
|
||||||
|
|
||||||
// create arrays
|
// create arrays
|
||||||
$sidebar_func_list = array();
|
$sidebar_func_list = array();
|
||||||
$help_list = array();
|
$help_list = array();
|
||||||
@@ -295,4 +290,8 @@ if(!isset($_SESSION['current']))
|
|||||||
|
|
||||||
// if we are debugging we need to see all errors
|
// if we are debugging we need to see all errors
|
||||||
if($_SESSION['current']->showDebuggingInfos()) error_reporting(E_ALL ^ E_NOTICE);
|
if($_SESSION['current']->showDebuggingInfos()) error_reporting(E_ALL ^ E_NOTICE);
|
||||||
|
|
||||||
|
// include filter.php to filter all REQUEST input
|
||||||
|
require(BASE."include/filter.php");
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user