From dc2db59a9dc72f62dec5b1ba92bd117b143010d0 Mon Sep 17 00:00:00 2001 From: cigamit Date: Thu, 19 Aug 2004 03:18:30 +0000 Subject: [PATCH] Fix forwarding from the Mailbox list. I posted to the Devel list about this on June 6, but got no response. We need to forward to the compose page, but instead it forwards back to itself ($PHP_SELF) which just makes it refresh the page. I am working on fixing one last issue with it now. When forwarding, unread messages appear to be marked as read in the cache, even when they aren't in message list (refreshing both frames still leaves them out of synch). git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7941 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/right_main.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/right_main.php b/src/right_main.php index 00a166e1..ea29fdac 100644 --- a/src/right_main.php +++ b/src/right_main.php @@ -184,13 +184,8 @@ if (isset($aMailbox['FORWARD_SESSION'])) { sqsession_register($aMailbox,'aLastSelectedMailbox'); session_write_close(); // we have to redirect to the compose page - global $PHP_SELF; - if (!strpos($PHP_SELF,'?')) { - $location = $PHP_SELF.'?mailbox=INBOX&startMessage=1'; - } else { - $location = $PHP_SELF; - } - $location = set_url_var($location, 'session',$aMailbox['FORWARD_SESSION'], false); + $location = SM_PATH . 'src/compose.php?mailbox='. urlencode($mailbox). + '&session='.$aMailbox['FORWARD_SESSION']; header("Location: $location"); exit; } -- 2.25.1