summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortill <till@php.net>2008-02-02 23:26:17 +0000
committertill <till@php.net>2008-02-02 23:26:17 +0000
commit9f5bd376b47f41924ede3d8136302d0f7b81c89f (patch)
treea57ecad9c17b2af9bd41e2d7659be12f67a724f9
parentff08eed202d77935f277bf221f753dad6f657fdb (diff)
* fixed another instance of preg_quote() (thanks Sean N. Heukels)
-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('&nbsp;&nbsp;&nbsp;&nbsp;', $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('&nbsp;&nbsp;&nbsp;&nbsp;', $level) . rcube_charset_convert($foldersplit[$level], 'UTF-7');