瀏覽代碼

Resolved issue with compose session not being updated on send/save.

Thanks to Michael Andreas for bringing this back up.
jangliss 18 年之前
父節點
當前提交
252d1a91e2
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 1 0
      ChangeLog
  2. 2 0
      src/compose.php

+ 1 - 0
ChangeLog

@@ -201,6 +201,7 @@ Version 1.5.2 - SVN
     images. Thanks to Mikhail Markin, Tomas Kuliavas and Michael Jordon
     images. Thanks to Mikhail Markin, Tomas Kuliavas and Michael Jordon
     for reporting these issues. [CVE-2007-1262]
     for reporting these issues. [CVE-2007-1262]
   - Fix busy loop and notice when two literals in IMAP fetch (#1739433).
   - Fix busy loop and notice when two literals in IMAP fetch (#1739433).
+  - Resolved issue with compose session not being updated after send/safe.
 
 
 Version 1.5.1 (branched on 2006-02-12)
 Version 1.5.1 (branched on 2006-02-12)
 --------------------------------------
 --------------------------------------

+ 2 - 0
src/compose.php

@@ -412,6 +412,7 @@ if ($draft) {
         exit();
         exit();
     } else {
     } else {
         unset($compose_messages[$session]);
         unset($compose_messages[$session]);
+        sqsession_register($compose_messages,'compose_messages');
         $draft_message = _("Draft Email Saved");
         $draft_message = _("Draft Email Saved");
         /* If this is a resumed draft, then delete the original */
         /* If this is a resumed draft, then delete the original */
         if(isset($delete_draft)) {
         if(isset($delete_draft)) {
@@ -519,6 +520,7 @@ if ($send) {
             exit();
             exit();
         }
         }
         unset($compose_messages[$session]);
         unset($compose_messages[$session]);
+        sqsession_register($compose_messages,'compose_messages');
 
 
         /* if it is resumed draft, delete draft message */
         /* if it is resumed draft, delete draft message */
         if ( isset($delete_draft)) {
         if ( isset($delete_draft)) {