diff options
author | alecpl <alec@alec.pl> | 2009-01-23 10:29:51 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-01-23 10:29:51 +0000 |
commit | cbf1f3cfaa477ca1dfef372751c551f1a75e46b6 (patch) | |
tree | ea290ec20f5569131c12bacfbce0f9383236b24f | |
parent | f3bd5ae1c2a27e2d64363d00569f40107c3e9aeb (diff) |
- Fixed creation of folders with '&' sign in name (reverted r1357)
-rw-r--r-- | CHANGELOG | 6 | ||||
-rw-r--r-- | program/steps/settings/manage_folders.inc | 9 |
2 files changed, 8 insertions, 7 deletions
@@ -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++) { |