Browse Source

Fix not encoding drafts folder when saving to draft; causes failure when
drafts folder contains special chars. Thanks Alexander Koch for the fix.

Thijs Kinkhorst 21 năm trước cách đây
mục cha
commit
bec75eac2d
2 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 1 0
      ChangeLog
  2. 1 1
      src/compose.php

+ 1 - 0
ChangeLog

@@ -76,6 +76,7 @@ Version 1.5.1 -- CVS
   - Added "no focus" option for compose page in display preferences (setting
   - Added "no focus" option for compose page in display preferences (setting
     reply focus to "No focus" also affects composing new messages)
     reply focus to "No focus" also affects composing new messages)
   - Current hook name is now globally available when running a hook ($currentHookName)
   - Current hook name is now globally available when running a hook ($currentHookName)
+  - Fix bug when Saving to Draft folder that contains special characters.
 
 
 Version 1.5.0
 Version 1.5.0
 --------------------
 --------------------

+ 1 - 1
src/compose.php

@@ -333,7 +333,7 @@ if ($draft) {
                 exit();
                 exit();
             }
             }
             else {
             else {
-                Header("Location: $location/right_main.php?mailbox=$draft_folder".
+                Header("Location: $location/right_main.php?mailbox=" . urlencode($draft_folder) .
                        "&startMessage=1&note=".urlencode($draft_message));
                        "&startMessage=1&note=".urlencode($draft_message));
                 exit();
                 exit();
             }
             }