summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-10-11 12:33:51 +0200
committerAleksander Machniak <alec@alec.pl>2012-10-11 12:33:51 +0200
commit974f9db47963a65c6b2b652709a4c0e17ada76c5 (patch)
tree2d185d53f1348663b6d05084c70704c638edfc63 /program
parent7ac533dedea5bae31baa2eb6450cc0eb8c1b0090 (diff)
- Very small perf improvement
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_imap_generic.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_imap_generic.php b/program/include/rcube_imap_generic.php
index ba640d359..52bf0e37a 100644
--- a/program/include/rcube_imap_generic.php
+++ b/program/include/rcube_imap_generic.php
@@ -2180,7 +2180,7 @@ class rcube_imap_generic
$result[$id]->encoding = $string;
break;
case 'content-type':
- $ctype_parts = preg_split('/[; ]/', $string);
+ $ctype_parts = preg_split('/[; ]+/', $string);
$result[$id]->ctype = strtolower(array_shift($ctype_parts));
if (preg_match('/charset\s*=\s*"?([a-z0-9\-\.\_]+)"?/i', $string, $regs)) {
$result[$id]->charset = $regs[1];