From: stekkel Date: Mon, 24 Apr 2006 15:59:13 +0000 (+0000) Subject: Thnx tomas and shame on me. X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=826ddd721ad82602a31338077f5369eedec60e8f Thnx tomas and shame on me. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11083 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/include/init.php b/include/init.php index 7ed4687c..a7755115 100644 --- a/include/init.php +++ b/include/init.php @@ -23,7 +23,7 @@ error_reporting(E_ALL); * Code requires PHP 4.1.0 or newer. * Second test covers boolean set as string (php_value register_globals off). */ -if ((bool) @ini_get('register_globals') && +if ((bool) @ini_get('register_globals') && strtolower(ini_get('register_globals'))!='off') { /** * Remove all globals from $_GET, $_POST, and $_COOKIE. @@ -162,7 +162,7 @@ if ((bool) @ini_get('register_globals')) { } } -sqsession_register($base_uri, SM_BASE_URI); +sqsession_register(SM_BASE_URI,'base_uri'); /** * SquirrelMail version number -- DO NOT CHANGE @@ -222,7 +222,7 @@ switch ($sInitLocation) { case 'style': session_write_close(); sqsetcookieflush(); break; case 'redirect': /** - * directory hashing functions are needed for all setups in case + * directory hashing functions are needed for all setups in case * plugins use own pref files. */ require(SM_PATH . 'functions/prefs.php');