summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-10-23 08:26:17 +0000
committeralecpl <alec@alec.pl>2011-10-23 08:26:17 +0000
commitb9787b3560c33538db276a123dd097507a8f28f9 (patch)
tree034206d33e6b9916e4f0048fb30686da5d9fdab6
parent7e50b4361c7094bb33fced2ef96b95acd4d87640 (diff)
- Add underline character to charset regexp
-rw-r--r--program/include/rcube_imap.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index b04a28615..e5d2afc11 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -2403,7 +2403,7 @@ class rcube_imap
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;