diff options
author | alecpl <alec@alec.pl> | 2008-05-09 06:53:48 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-05-09 06:53:48 +0000 |
commit | 399835052076c8958edc52a0c4d7d40eba00ebb4 (patch) | |
tree | 733b4cc37e5dc3f9b733d271209d9717bd9579b3 | |
parent | 583850d00cb61771333a19ed57bef753ac140fe0 (diff) |
- Fixed (?) r1366 change (#1485050)
-rw-r--r-- | program/include/rcube_imap.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index 9acb60b49..3a634e028 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -2341,8 +2341,10 @@ class rcube_imap $pos = strpos($input, '=?'); if ($pos !== false) { - // rfc: all line breaks or other characters not found in the Base64 Alphabet must be ignored by decoding software - // delete all blanks between MIME-lines, differently we can receive unnecessary blanks and broken utf-8 symbols + // rfc: all line breaks or other characters not found + // in the Base64 Alphabet must be ignored by decoding software + // delete all blanks between MIME-lines, differently we can + // receive unnecessary blanks and broken utf-8 symbols $input = preg_replace("/\?=\s+=\?/", '?==?', $input); $out = substr($input, 0, $pos); @@ -2359,9 +2361,10 @@ class rcube_imap return $out; } - + // no encoding information, use fallback - return rcube_charset_convert($input, !empty($fallback) ? $fallback : $this->default_charset); + return rcube_charset_convert($input, + !empty($fallback) ? $fallback : $GLOBALS['CONFIG']['default_charset']); } |