Changeset 5576 in subversion


Ignore:
Timestamp:
Dec 8, 2011 6:47:35 AM (19 months ago)
Author:
alec
Message:
  • Microoptimizations
File:
1 edited

Legend:

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

    r5575 r5576  
    29382938            // check if mailbox children are subscribed 
    29392939            foreach ($a_subscribed as $c_subscribed) { 
    2940                 if (preg_match('/^'.preg_quote($mailbox.$delm, '/').'/', $c_subscribed)) { 
     2940                if (strpos($c_subscribed, $mailbox.$delm) === 0) { 
    29412941                    $this->conn->unsubscribe($c_subscribed); 
    29422942                    $this->conn->subscribe(preg_replace('/^'.preg_quote($mailbox, '/').'/', 
     
    29822982 
    29832983            foreach ($sub_mboxes as $c_mbox) { 
    2984                 if (preg_match('/^'.preg_quote($mailbox.$delm, '/').'/', $c_mbox)) { 
     2984                if (strpos($c_mbox, $mailbox.$delm) === 0) { 
    29852985                    $this->conn->unsubscribe($c_mbox); 
    29862986                    if ($this->conn->deleteFolder($c_mbox)) { 
Note: See TracChangeset for help on using the changeset viewer.