diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-03-21 12:03:45 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-03-21 12:03:45 +0000 |
| commit | 86a50f2b5f229328cbff6ccee9aa93ef6693eacb (patch) | |
| tree | 1a22bfca10924bebc8623f899d6b254da63f24d4 /roundcubemail/program/include | |
| parent | a26f3c7c76b970a8b5447db347cc564a63cd639a (diff) | |
Applied patch to fix mime decoding an folder subscription (#1484191)
git-svn-id: https://svn.roundcube.net/trunk@1196 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_imap.inc b/roundcubemail/program/include/rcube_imap.inc index bec429ff5..94f5017b8 100644 --- a/roundcubemail/program/include/rcube_imap.inc +++ b/roundcubemail/program/include/rcube_imap.inc @@ -1674,7 +1674,7 @@ class rcube_imap if (is_array($mbox_name)) $a_mboxes = $mbox_name; else if (is_string($mbox_name) && strlen($mbox_name)) - $a_mboxes = explode(',', $mbox_name); + $a_mboxes = (array)$mbox_name; // let this common function do the main work return $this->_change_subscription($a_mboxes, 'unsubscribe'); @@ -2335,6 +2335,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 + $input = preg_replace("/\?=\s+=\?/", '?==?', $input); + $out = substr($input, 0, $pos); $end_cs_pos = strpos($input, "?", $pos+2); |
