Aleksander Machniak
2012-10-11 974f9db47963a65c6b2b652709a4c0e17ada76c5
- Very small perf improvement
1 files modified
2 ■■■ changed files
program/include/rcube_imap_generic.php 2 ●●● patch | view | raw | blame | history
program/include/rcube_imap_generic.php
@@ -2180,7 +2180,7 @@
                            $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];