From a8875eb280e5f5e073592bcf0539bb0cdf6706cc Mon Sep 17 00:00:00 2001 From: thomasb Date: Wed, 14 Mar 2007 00:39:51 +0000 Subject: 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 --- roundcubemail/program/lib/Mail/mime.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roundcubemail/program/lib/Mail') 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; -- cgit v1.2.3