From cbf1f3cfaa477ca1dfef372751c551f1a75e46b6 Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 23 Jan 2009 10:29:51 +0000 Subject: - Fixed creation of folders with '&' sign in name (reverted r1357) --- CHANGELOG | 6 ++++++ program/steps/settings/manage_folders.inc | 9 ++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 123b24377..94559b73b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,12 @@ CHANGELOG RoundCube Webmail --------------------------- +2009/01/23 (alec) +---------- +- Fix creation of folders with '&' sign in name +- Fix parsing of email addresses without angle brackets (#1485693) +- Save spellcheck corrections when switching from plain to html editor (and spellchecking is on) + 2009/01/22 (thomasb) ---------- - Get rid of preg_replace() with eval modifier and create_function usage (#1485686) diff --git a/program/steps/settings/manage_folders.inc b/program/steps/settings/manage_folders.inc index 2af922898..9affded98 100644 --- a/program/steps/settings/manage_folders.inc +++ b/program/steps/settings/manage_folders.inc @@ -44,8 +44,6 @@ else if ($RCMAIL->action=='create-folder') if (!empty($_POST['_name'])) { $name = trim(get_input_value('_name', RCUBE_INPUT_POST, FALSE, 'UTF-7')); - // #1485036 (RFC3501, 5.1.3) TODO: it should be done on read not on write - $name = str_replace('&-', '&', $name); $create = $IMAP->create_mailbox($name, TRUE); } @@ -78,9 +76,6 @@ else if ($RCMAIL->action=='rename-folder') $name = rcube_charset_convert($name_utf8, 'UTF-8', 'UTF-7'); $oldname = rcube_charset_convert($oldname_utf8, 'UTF-8', 'UTF-7'); - // #1485036 (RFC3501, 5.1.3) TODO: it should be done on read not on write - $name = str_replace('&-', '&', $name); - $rename = $IMAP->rename_mailbox($oldname, $name); } @@ -190,14 +185,14 @@ function rcube_subscription_form($attrib) $a_subscribed = $IMAP->list_mailboxes(); $delimiter = $IMAP->get_hierarchy_delimiter(); $a_js_folders = $seen_folders = $list_folders = array(); - + // pre-process folders list foreach ($a_unsubscribed as $i => $folder) { $foldersplit = explode($delimiter, $folder); $name = rcube_charset_convert(array_pop($foldersplit), 'UTF-7'); $parent_folder = join($delimiter, $foldersplit); $level = count($foldersplit); - + // add any necessary "virtual" parent folders if ($parent_folder && !$seen[$parent_folder]) { for ($i=1; $i<=$level; $i++) { -- cgit v1.2.3