Fix operations on folders with trailing spaces in name (#1489419)
| | |
| | | CHANGELOG Roundcube Webmail |
| | | =========================== |
| | | |
| | | - Fix operations on folders with trailing spaces in name (#1489419) |
| | | - Improve identity selection based on From: header (#1489378) |
| | | - Fix issue where mails with inline images of the same name contained only the first image multiple times (#1489406) |
| | | - Use left/right arrow keys to collapse/expand thread and spacebar to select a row, change Ctrl key behavior (#1489392) |
| | |
| | | $storage = $RCMAIL->get_storage(); |
| | | |
| | | // edited folder name (empty in create-folder mode) |
| | | $mbox = trim(get_input_value('_mbox', RCUBE_INPUT_GPC, true)); |
| | | $mbox = get_input_value('_mbox', RCUBE_INPUT_GPC, true); |
| | | $mbox_imap = rcube_charset_convert($mbox, RCMAIL_CHARSET, 'UTF7-IMAP'); |
| | | |
| | | // predefined path for new folder |
| | | $parent = trim(get_input_value('_path', RCUBE_INPUT_GPC, true)); |
| | | $parent = get_input_value('_path', RCUBE_INPUT_GPC, true); |
| | | $parent_imap = rcube_charset_convert($parent, RCMAIL_CHARSET, 'UTF7-IMAP'); |
| | | |
| | | $threading_supported = $storage->get_capability('THREAD'); |
| | |
| | | else if ($RCMAIL->action == 'rename-folder') |
| | | { |
| | | $name_utf8 = trim(get_input_value('_folder_newname', RCUBE_INPUT_POST, true)); |
| | | $oldname_utf8 = trim(get_input_value('_folder_oldname', RCUBE_INPUT_POST, true)); |
| | | $oldname_utf8 = get_input_value('_folder_oldname', RCUBE_INPUT_POST, true); |
| | | |
| | | if (strlen($name_utf8) && strlen($oldname_utf8)) { |
| | | $name = rcube_charset_convert($name_utf8, RCMAIL_CHARSET, 'UTF7-IMAP'); |
| | |
| | | // get mailbox size |
| | | else if ($RCMAIL->action == 'folder-size') |
| | | { |
| | | $name = trim(get_input_value('_mbox', RCUBE_INPUT_POST, true)); |
| | | $name = get_input_value('_mbox', RCUBE_INPUT_POST, true); |
| | | |
| | | $size = $STORAGE->folder_size($name); |
| | | |
| | |
| | | | program/steps/settings/save_folder.inc | |
| | | | | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2005-2012, The Roundcube Dev Team | |
| | | | Copyright (C) 2005-2013, The Roundcube Dev Team | |
| | | | | |
| | | | Licensed under the GNU General Public License version 3 or | |
| | | | any later version with exceptions for skins & plugins. | |
| | |
| | | |
| | | |
| | | $name = trim(get_input_value('_name', RCUBE_INPUT_POST, true)); |
| | | $old = trim(get_input_value('_mbox', RCUBE_INPUT_POST, true)); |
| | | $path = trim(get_input_value('_parent', RCUBE_INPUT_POST, true)); |
| | | $old = get_input_value('_mbox', RCUBE_INPUT_POST, true); |
| | | $path = get_input_value('_parent', RCUBE_INPUT_POST, true); |
| | | |
| | | $name_imap = rcube_charset_convert($name, RCMAIL_CHARSET, 'UTF7-IMAP'); |
| | | $old_imap = rcube_charset_convert($old, RCMAIL_CHARSET, 'UTF7-IMAP'); |