Changeset 993 in subversion


Ignore:
Timestamp:
Feb 2, 2008 12:22:36 PM (5 years ago)
Author:
till
Message:
Location:
trunk/roundcubemail/program
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_imap.inc

    r933 r993  
    17721772 
    17731773        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)) 
    17751778            { 
    17761779            iil_C_UnSubscribe($this->conn, $c_mbox); 
     
    17791782              $deleted = TRUE; 
    17801783            } 
     1784          } 
    17811785        } 
    17821786 
  • trunk/roundcubemail/program/steps/settings/manage_folders.inc

    r887 r993  
    120120    $OUTPUT->command('remove_folder_row', get_input_value('_mboxes', RCUBE_INPUT_POST)); 
    121121    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        { 
    123127        $OUTPUT->command('remove_folder_row', $mbox); 
     128        } 
     129      } 
    124130    $OUTPUT->show_message('folderdeleted', 'confirmation'); 
    125131    $OUTPUT->send(); 
Note: See TracChangeset for help on using the changeset viewer.