From 5ee94f4617fb6fb44d13ead57596c96e7f327ee0 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Sat, 6 Jan 2007 05:03:58 +0000 Subject: [PATCH] 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. --- include/incl.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/incl.php b/include/incl.php index 3cd1474..91e6d12 100644 --- a/include/incl.php +++ b/include/incl.php @@ -81,11 +81,6 @@ if(isset($_REQUEST['mode'])) } /* End backwards compatibility code */ - -// include filter.php to filter all REQUEST input -require(BASE."include/filter.php"); - - // create arrays $sidebar_func_list = array(); $help_list = array(); @@ -295,4 +290,8 @@ if(!isset($_SESSION['current'])) // if we are debugging we need to see all errors if($_SESSION['current']->showDebuggingInfos()) error_reporting(E_ALL ^ E_NOTICE); + +// include filter.php to filter all REQUEST input +require(BASE."include/filter.php"); + ?>