From 304c159b39b5cc4d5eeb3846c0ccdf70c278456c Mon Sep 17 00:00:00 2001 From: kink Date: Fri, 30 Jul 2004 19:28:42 +0000 Subject: [PATCH] Fix not encoding drafts folder when saving to draft; causes failure when 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 | 1 + src/compose.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dd23d91a..10e3d5b2 100644 --- 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 -------------------- diff --git a/src/compose.php b/src/compose.php index 46136dbb..b24dde7c 100644 --- a/src/compose.php +++ b/src/compose.php @@ -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¬e=".urlencode($draft_message)); exit(); } -- 2.25.1