diff options
author | alecpl <alec@alec.pl> | 2010-09-08 09:40:39 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-09-08 09:40:39 +0000 |
commit | 2aa2b332f6e216ceeabc36ef6b942c40d91bda5a (patch) | |
tree | 08a21f5cb3d9f7bc706fa34a73aba37baff9a03c /program/include/rcube_imap_generic.php | |
parent | ec581c106e51a46f4536caec397e2b34821db5de (diff) |
- Small performance improvements
Diffstat (limited to 'program/include/rcube_imap_generic.php')
-rw-r--r-- | program/include/rcube_imap_generic.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_imap_generic.php b/program/include/rcube_imap_generic.php index 6cf86fc24..0c69c2320 100644 --- a/program/include/rcube_imap_generic.php +++ b/program/include/rcube_imap_generic.php @@ -1258,7 +1258,7 @@ class rcube_imap_generic } break; case 'in-reply-to': - $result[$id]->in_reply_to = preg_replace('/[\n<>]/', '', $string); + $result[$id]->in_reply_to = str_replace(array("\n", '<', '>'), '', $string); break; case 'references': $result[$id]->references = $string; @@ -2115,7 +2115,7 @@ class rcube_imap_generic // return false if not found, parse if found $min_free = PHP_INT_MAX; foreach ($quota_lines as $key => $quota_line) { - $quota_line = preg_replace('/[()]/', '', $quota_line); + $quota_line = str_replace(array('(', ')'), '', $quota_line); $parts = explode(' ', $quota_line); $storage_part = array_search('STORAGE', $parts); |