From 225ffd69af51ee95b90880c506a3be42428f4fbc Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 13 Mar 2006 05:29:54 +0000 Subject: [PATCH] r755: More safety for register_globals --- includes/init.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/init.php b/includes/init.php index 247e6b3..6d06b15 100755 --- a/includes/init.php +++ b/includes/init.php @@ -25,6 +25,7 @@ if (!file_exists('./includes/config.php')) require_once('./includes/config.php'); $thepass = $password; // GAH register_globals +$theuser = $username; define('ISSO_ESCAPE_STRINGS', 1); define('ISSO_CHECK_POST_REFERER', 1); @@ -53,7 +54,7 @@ define('DEVDEBUG', $debug); define('TABLE_PREFIX', $tableprefix); define('COOKIE_PREFIX', $cookieprefix); -unset($database, $servername, $username, $password, $thepass, $usepconnect, $tableprefix, $cookieprefix); +unset($database, $servername, $theuser, $password, $thepass, $usepconnect, $tableprefix, $cookieprefix); require_once('./includes/functions_datastore.php'); require_once('./includes/functions.php'); -- 2.22.5