Browse Source

Fix for 1222436. Forwarding broken when compose in new window not used.

jangliss 20 năm trước cách đây
mục cha
commit
ef93ff0dd3
2 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 1 0
      ChangeLog
  2. 2 2
      src/right_main.php

+ 1 - 0
ChangeLog

@@ -433,6 +433,7 @@ Version 1.5.1 -- CVS
     in formatBody() function (#1258925).
     in formatBody() function (#1258925).
   - login_form hook changed from do_hook to concat_hook_function in order to
   - login_form hook changed from do_hook to concat_hook_function in order to
     place form elements before login button (#1245070).
     place form elements before login button (#1245070).
+  - Forwarding broken when not using compose in new window (#1222436).
 
 
 Version 1.5.0 - 2 February 2004
 Version 1.5.0 - 2 February 2004
 -------------------------------
 -------------------------------

+ 2 - 2
src/right_main.php

@@ -302,7 +302,7 @@ if (isset($aMailbox['FORWARD_SESSION'])) {
         session_write_close();
         session_write_close();
         // we have to redirect to the compose page
         // we have to redirect to the compose page
         $location = SM_PATH . 'src/compose.php?mailbox='. urlencode($mailbox).
         $location = SM_PATH . 'src/compose.php?mailbox='. urlencode($mailbox).
-                    '&session='.$aMailbox['FORWARD_SESSION'];
+                    '&session='.$aMailbox['FORWARD_SESSION'];
         header("Location: $location");
         header("Location: $location");
         exit;
         exit;
     }
     }
@@ -393,4 +393,4 @@ $oTemplate->display('footer.tpl');
 /* add the mailbox to the cache */
 /* add the mailbox to the cache */
 $mailbox_cache[$account.'_'.$aMailbox['NAME']] = $aMailbox;
 $mailbox_cache[$account.'_'.$aMailbox['NAME']] = $aMailbox;
 sqsession_register($mailbox_cache,'mailbox_cache');
 sqsession_register($mailbox_cache,'mailbox_cache');
-?>
+?>