Permalink
Browse files

- Very small perf improvement

  • Loading branch information...
alecpl committed Oct 11, 2012
1 parent 7ac533d commit 974f9db47963a65c6b2b652709a4c0e17ada76c5
Showing with 1 addition and 1 deletion.
  1. +1 −1 program/include/rcube_imap_generic.php
@@ -2180,7 +2180,7 @@ function fetch($mailbox, $message_set, $is_uid = false, $query_items = array(),
$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];

0 comments on commit 974f9db

Please sign in to comment.