From fa0152c21a7465013cd2a980d5cd3531ff7720d6 Mon Sep 17 00:00:00 2001 From: till Date: Sat, 2 Feb 2008 17:22:36 +0000 Subject: * fixed #1484738 --- program/steps/settings/manage_folders.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'program/steps') diff --git a/program/steps/settings/manage_folders.inc b/program/steps/settings/manage_folders.inc index b329e4c64..7e06c9c8f 100644 --- a/program/steps/settings/manage_folders.inc +++ b/program/steps/settings/manage_folders.inc @@ -119,8 +119,14 @@ else if ($_action=='delete-folder') { $OUTPUT->command('remove_folder_row', get_input_value('_mboxes', RCUBE_INPUT_POST)); foreach ($a_mboxes as $mbox) - if (preg_match('/^'.preg_quote(get_input_value('_mboxes', RCUBE_INPUT_POST).$delimiter).'/', $mbox)) + { + $regex = get_input_value('_mboxes', RCUBE_INPUT_POST) . $delimiter; + $regex = preg_quote($regex, '/'); + if (preg_match('/^'. $regex .'/', $mbox)) + { $OUTPUT->command('remove_folder_row', $mbox); + } + } $OUTPUT->show_message('folderdeleted', 'confirmation'); $OUTPUT->send(); } -- cgit v1.2.3