From 9f5bd376b47f41924ede3d8136302d0f7b81c89f Mon Sep 17 00:00:00 2001 From: till Date: Sat, 2 Feb 2008 23:26:17 +0000 Subject: * fixed another instance of preg_quote() (thanks Sean N. Heukels) --- program/steps/settings/manage_folders.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'program') 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'); -- cgit v1.2.3