summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcube_imap.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-05-09 06:53:48 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-05-09 06:53:48 +0000
commit39ec8abaa4121cda86fb4d6a94326d37e1189150 (patch)
tree4f37444c6a219a0c6ac49a843c00de8d01722e8d /roundcubemail/program/include/rcube_imap.php
parentb6211cebec01da66e6e7ee71896e0d5f87830df2 (diff)
- Fixed (?) r1366 change (#1485050)
git-svn-id: https://svn.roundcube.net/trunk@1367 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_imap.php')
-rw-r--r--roundcubemail/program/include/rcube_imap.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php
index 9acb60b49..3a634e028 100644
--- a/roundcubemail/program/include/rcube_imap.php
+++ b/roundcubemail/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']);
}