diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-03-14 00:39:51 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-03-14 00:39:51 +0000 |
| commit | a8875eb280e5f5e073592bcf0539bb0cdf6706cc (patch) | |
| tree | d8cee617f3cfb3fcfd99b4a4df74d541348cb0cc /roundcubemail/program/lib | |
| parent | f68bc96beb242dee0714334709d0bdd750ad7f99 (diff) | |
Fixed message headers encoding; improved recipient splitting; applied patch for attachment download (#1484198)
git-svn-id: https://svn.roundcube.net/trunk@506 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/lib')
| -rw-r--r-- | roundcubemail/program/lib/Mail/mime.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/lib/Mail/mime.php b/roundcubemail/program/lib/Mail/mime.php index a9f798ed8..e7129db23 100644 --- a/roundcubemail/program/lib/Mail/mime.php +++ b/roundcubemail/program/lib/Mail/mime.php @@ -836,9 +836,9 @@ class Mail_mime default: // quoted-printable encoding has been selected $mode = 'Q'; - $encoded = preg_replace('/([\x20-\x25\x2C\x80-\xFF])/e', "'='.sprintf('%02X', ord('\\1'))", $value); + $encoded = preg_replace('/([\x2C\x3F\x80-\xFF])/e', "'='.sprintf('%02X', ord('\\1'))", $value); // replace spaces with _ - $encoded = str_replace('=20', '_', $encoded); + $encoded = str_replace(' ', '_', $encoded); } $value = '=?' . $this->_build_params['head_charset'] . '?' . $mode . '?' . $encoded . '?=' . $suffix; |
