alecpl
2011-10-23 b9787b3560c33538db276a123dd097507a8f28f9
- Add underline character to charset regexp


1 files modified
2 ■■■ changed files
program/include/rcube_imap.php 2 ●●● patch | view | raw | blame | history
program/include/rcube_imap.php
@@ -2403,7 +2403,7 @@
           if (!$skip_charset_conv) {
                if (!$o_part->charset || strtoupper($o_part->charset) == 'US-ASCII') {
                    // try to extract charset information from HTML meta tag (#1488125)
                    if ($o_part->ctype_secondary == 'html' && preg_match('/<meta[^>]+charset=([a-z0-9-]+)/i', $body, $m))
                    if ($o_part->ctype_secondary == 'html' && preg_match('/<meta[^>]+charset=([a-z0-9-_]+)/i', $body, $m))
                        $o_part->charset = strtoupper($m[1]);
                    else
                        $o_part->charset = $this->default_charset;