Fix mixup of session restore location
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 28 Aug 2007 20:09:41 +0000 (20:09 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 28 Aug 2007 20:09:41 +0000 (20:09 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12613 7612ce4b-ef26-0410-bec9-ea0150e637f0

include/init.php

index 7b5b2d9..cc2b8e4 100644 (file)
@@ -411,13 +411,13 @@ switch (PAGE_NAME) {
             //  information-loss.
             //
             $session_expired_post = $_POST;
-            $session_expired_location = $PHP_SELF;
+            $session_expired_location = PAGE_NAME;
             if (!sqsession_is_registered('session_expired_post')) {
                 sqsession_register($session_expired_post,'session_expired_post');
             }
             if (!sqsession_is_registered('session_expired_location')) {
                 sqsession_register($session_expired_location,'session_expired_location');
-                if (stristr($session_expired_location, 'src/compose.php'))
+                if ($session_expired_location == 'compose')
                     $message = 1;
             }
             // signout page will deal with users who aren't logged