From: tokul Date: Mon, 24 Apr 2006 17:05:38 +0000 (+0000) Subject: session vars can unset configuration and runtime variables here. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3464e1f423542cccb5e04e375bbf3f0bd4521421;p=squirrelmail.git session vars can unset configuration and runtime variables here. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11084 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/include/init.php b/include/init.php index a7755115..e49161a6 100644 --- a/include/init.php +++ b/include/init.php @@ -154,13 +154,19 @@ session_set_cookie_params (0, $base_uri); sqsession_is_active(); /** + * DISABLED. * Remove globalized session data in rg=on setups - */ -if ((bool) @ini_get('register_globals')) { + * + * Code can be utilized when session is started, but data is not loaded. + * We have already loaded configuration and other important vars. Can't + * clean session globals here. +if ((bool) @ini_get('register_globals') && + strtolower(ini_get('register_globals'))!='off') { foreach ($_SESSION as $key => $value) { unset($GLOBALS[$key]); } } +*/ sqsession_register(SM_BASE_URI,'base_uri');