summaryrefslogtreecommitdiff
path: root/program/steps/settings
diff options
context:
space:
mode:
Diffstat (limited to 'program/steps/settings')
-rw-r--r--program/steps/settings/manage_folders.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/settings/manage_folders.inc b/program/steps/settings/manage_folders.inc
index 7e06c9c8f..e457dadf5 100644
--- a/program/steps/settings/manage_folders.inc
+++ b/program/steps/settings/manage_folders.inc
@@ -85,9 +85,9 @@ else if ($_action=='rename-folder')
$display_rename = str_repeat('    ', $level) . rcube_charset_convert($foldersplit[$level], 'UTF-7');
$OUTPUT->command('replace_folder_row', $oldname, $rename, $display_rename);
foreach ($a_mboxes as $mbox)
- if (preg_match('/^'.preg_quote($oldname.$delimiter).'/', $mbox))
+ if (preg_match('/^'.preg_quote($oldname . $delimiter, '/').'/', $mbox))
{
- $c_rename = preg_replace('/^'.preg_quote($oldname).'/', $rename, $mbox);
+ $c_rename = preg_replace('/^'.preg_quote($oldname, '/').'/', $rename, $mbox);
$foldersplit = explode($delimiter, $c_rename);
$level = count($foldersplit) - 1;
$display_rename = str_repeat('    ', $level) . rcube_charset_convert($foldersplit[$level], 'UTF-7');