Make return-to-message work for forwards
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 22 Nov 2017 22:56:18 +0000 (22:56 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 22 Nov 2017 22:56:18 +0000 (22:56 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14745 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index f25ae34c4e52b69bf1e3cf86fd2ea356b1caec0b..a45512aa7af2d77d7caa705b18f202430964ce35 100644 (file)
@@ -574,7 +574,8 @@ if ($send) {
         } else {
             if ( !isset($pageheader_sent) || !$pageheader_sent ) {
                 global $return_to_message_after_reply;
-                if (($action === 'reply' || $action === 'reply_all') && $return_to_message_after_reply)
+                if (($action === 'reply' || $action === 'reply_all' || $action === 'forward' || $action === 'forward_as_attachment')
+                 && $return_to_message_after_reply && $passed_id)
                     header("Location: $location/read_body.php?passed_id=$passed_id&mailbox=$urlMailbox".
                             "&startMessage=$startMessage&mail_sent=$mail_sent");
                 else