From f8e686053e1aaefc590e0dac537bdcaf92fde20f Mon Sep 17 00:00:00 2001 From: pdontthink Date: Tue, 28 Aug 2007 20:09:41 +0000 Subject: [PATCH] Fix mixup of session restore location git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12613 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- include/init.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/init.php b/include/init.php index 7b5b2d9c..cc2b8e43 100644 --- a/include/init.php +++ b/include/init.php @@ -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 -- 2.25.1