Changeset 993 in subversion
- Timestamp:
- Feb 2, 2008 12:22:36 PM (5 years ago)
- Location:
- trunk/roundcubemail/program
- Files:
-
- 2 edited
-
include/rcube_imap.inc (modified) (2 diffs)
-
steps/settings/manage_folders.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_imap.inc
r933 r993 1772 1772 1773 1773 foreach ($all_mboxes as $c_mbox) 1774 if (preg_match('/^'.preg_quote($mailbox.$this->delimiter).'/', $c_mbox)) 1774 { 1775 $regex = preg_quote($mailbox . $this->delimiter, '/'); 1776 $regex = '/^' . $regex . '/'; 1777 if (preg_match($regex, $c_mbox)) 1775 1778 { 1776 1779 iil_C_UnSubscribe($this->conn, $c_mbox); … … 1779 1782 $deleted = TRUE; 1780 1783 } 1784 } 1781 1785 } 1782 1786 -
trunk/roundcubemail/program/steps/settings/manage_folders.inc
r887 r993 120 120 $OUTPUT->command('remove_folder_row', get_input_value('_mboxes', RCUBE_INPUT_POST)); 121 121 foreach ($a_mboxes as $mbox) 122 if (preg_match('/^'.preg_quote(get_input_value('_mboxes', RCUBE_INPUT_POST).$delimiter).'/', $mbox)) 122 { 123 $regex = get_input_value('_mboxes', RCUBE_INPUT_POST) . $delimiter; 124 $regex = preg_quote($regex, '/'); 125 if (preg_match('/^'. $regex .'/', $mbox)) 126 { 123 127 $OUTPUT->command('remove_folder_row', $mbox); 128 } 129 } 124 130 $OUTPUT->show_message('folderdeleted', 'confirmation'); 125 131 $OUTPUT->send();
Note: See TracChangeset
for help on using the changeset viewer.
