diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-12-08 11:47:35 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-12-08 11:47:35 +0000 |
| commit | 1cf34f156aba4ff3217faddfd591851fd3294698 (patch) | |
| tree | 81c520d8dbf3a8fd7a767284fdf5f8f67c0227e7 /roundcubemail | |
| parent | e72a4f569bcef927fc4d218ef3e7c5e78b947064 (diff) | |
- Microoptimizations
git-svn-id: https://svn.roundcube.net/trunk@5576 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index df7b63185..3552010b8 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/program/include/rcube_imap.php @@ -2937,7 +2937,7 @@ class rcube_imap // check if mailbox children are subscribed foreach ($a_subscribed as $c_subscribed) { - if (preg_match('/^'.preg_quote($mailbox.$delm, '/').'/', $c_subscribed)) { + if (strpos($c_subscribed, $mailbox.$delm) === 0) { $this->conn->unsubscribe($c_subscribed); $this->conn->subscribe(preg_replace('/^'.preg_quote($mailbox, '/').'/', $new_name, $c_subscribed)); @@ -2981,7 +2981,7 @@ class rcube_imap $this->conn->unsubscribe($mailbox); foreach ($sub_mboxes as $c_mbox) { - if (preg_match('/^'.preg_quote($mailbox.$delm, '/').'/', $c_mbox)) { + if (strpos($c_mbox, $mailbox.$delm) === 0) { $this->conn->unsubscribe($c_mbox); if ($this->conn->deleteFolder($c_mbox)) { $this->clear_message_cache($c_mbox); |
