Package: squirrelmail
Version: 1.4.4-4


Hello,


I've got a problem with /usr/share/squirrelmail/src/signout.php on normal logouts and Squirrelmail plugins that hook in on logout (like squirrel logger, no username logged) and also session handling since the latest upstream version 1.4.4 (everything was ok with 1.4.3a and before).


$_SESSION is never set on top of the file at

if( ! isset($_SESSION) || empty($_SESSION['user_is_logged_in']) ) {

A litte patch loading prefs.php and its includes first brings in $_SESSION correctly and fixes this issue (and doesn't break "Handle a reload of the signout page gracefully" from 1.4.4 RC1 again).


Best regards, René



--- signout.php.orig     2005-04-01 21:30:37.000000000 +0200
+++ signout.php 2005-01-27 05:36:25.000000000 +0100
@@ -18,6 +18,8 @@
 */
define('SM_PATH','../');

+require_once(SM_PATH . 'functions/prefs.php');
+
/* check if we're already logged out (e.g. when this page is reloaded),
 * so we can skip to the output and not give error messages */
if( ! isset($_SESSION) || empty($_SESSION['user_is_logged_in']) ) {
@@ -28,7 +30,7 @@

if($loggedin) {
    require_once(SM_PATH . 'include/validate.php');
-    require_once(SM_PATH . 'functions/prefs.php');
+    //require_once(SM_PATH . 'functions/prefs.php');
} else {
    // this comes in through validate.php usually
    require_once(SM_PATH . 'config/config.php');




-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to