Fix not encoding drafts folder when saving to draft; causes failure when
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 30 Jul 2004 19:28:42 +0000 (19:28 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 30 Jul 2004 19:28:42 +0000 (19:28 +0000)
drafts folder contains special chars. Thanks Alexander Koch for the fix.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7787 7612ce4b-ef26-0410-bec9-ea0150e637f0

ChangeLog
src/compose.php

index dd23d91a6238c39413d701daaaf92e8dd3e68380..10e3d5b21f991d9370f17b6e11f87bdc77f7e24e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -76,6 +76,7 @@ Version 1.5.1 -- CVS
   - Added "no focus" option for compose page in display preferences (setting
     reply focus to "No focus" also affects composing new messages)
   - Current hook name is now globally available when running a hook ($currentHookName)
   - Added "no focus" option for compose page in display preferences (setting
     reply focus to "No focus" also affects composing new messages)
   - 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
 --------------------
index 46136dbbe21c942b9c90dfd442c6b346d4c4abb9..b24dde7cd0f9c22a53643a75b1e3fbf8863f0b64 100644 (file)
@@ -333,7 +333,7 @@ if ($draft) {
                 exit();
             }
             else {
                 exit();
             }
             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));
                 exit();
             }
                        "&startMessage=1&note=".urlencode($draft_message));
                 exit();
             }