PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Mail » Mail_Mime » Bug #3578

wrong quotable encoding

Details

Submitted2005-02-24 14:50 UTC
Fromj dot drobiecki at mwi dot pl
Assignedcipri
StatusBogus
PackageMail_Mime
PHP VersionIrrelevant
OSirrevelant
Roadmaps(Not assigned)

Comments

[2005-02-24 14:50 UTC] j dot drobiecki at mwi dot pl

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?=