From 128374f322300401ee8e2e2deb57363ecbe0b803 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 13 Mar 2006 05:18:37 +0000 Subject: [PATCH] r753: Another fix for messy register_globals --- includes/init.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/init.php b/includes/init.php index bc5df20..247e6b3 100755 --- a/includes/init.php +++ b/includes/init.php @@ -24,6 +24,7 @@ if (!file_exists('./includes/config.php')) } require_once('./includes/config.php'); +$thepass = $password; // GAH register_globals define('ISSO_ESCAPE_STRINGS', 1); define('ISSO_CHECK_POST_REFERER', 1); @@ -38,7 +39,7 @@ $bugsys->sourcepath = $bugsys->fetch_sourcepath($pathtoisso); $bugsys->load('db_mysql'); $db->database = $database; -$db->connect($servername, $username, $password, $usepconnect); +$db->connect($servername, $username, $thepass, $usepconnect); $bugsys->load('functions'); $bugsys->exec_sanitize_data(); @@ -52,7 +53,7 @@ define('DEVDEBUG', $debug); define('TABLE_PREFIX', $tableprefix); define('COOKIE_PREFIX', $cookieprefix); -unset($database, $servername, $username, $password, $usepconnect, $tableprefix, $cookieprefix); +unset($database, $servername, $username, $password, $thepass, $usepconnect, $tableprefix, $cookieprefix); require_once('./includes/functions_datastore.php'); require_once('./includes/functions.php'); -- 2.22.5