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 dd23d91..10e3d5b 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)
+  - Fix bug when Saving to Draft folder that contains special characters.
 
 Version 1.5.0
 --------------------
index 46136db..b24dde7 100644 (file)
@@ -333,7 +333,7 @@ if ($draft) {
                 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();
             }