From 974f9db47963a65c6b2b652709a4c0e17ada76c5 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 11 Oct 2012 12:33:51 +0200 Subject: - Very small perf improvement --- program/include/rcube_imap_generic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/include') 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]; -- cgit v1.2.3