Bug #3578 [NEW]: wrong quotable encoding
| From: | j dot drobiecki at mwi dot pl | Date: | Thu, 24 Feb 2005 14:50:06 +0000 |
| Subject: | Bug #3578 [NEW]: wrong quotable encoding | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-5561@lists.php.net to get a copy of this message | ||
From: j dot drobiecki at mwi dot pl
Operating system: irrevelant
PHP version: Irrelevant
Package: Documentation
Bug Type: Bug
Bug description: wrong quotable encoding
Description:
------------
For proper display of Subject header there should be no spaces beetwen two
quotable encoded words in header.
Reproduce code:
---------------
pathc:
Mail/mime.php:645:
- $input[$hdr_name] = $hdr_value;
+ $input[$hdr_name] = preg_replace('/\?=( *)=\?' .
$this->_build_params['head_charset'] . '\?Q\?/', '\1', $hdr_value);
Expected result:
----------------
Subject: =?ISO-8859-2?Q?narz=EAdzie w=B3adzy?=
Actual result:
--------------
Subject: =?ISO-8859-2?Q?narz=EAdzie?= =?ISO-8859-2?Q?w=B3adzy?=
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=3578&edit=1
--