[php-maint] Bug#660160: Bug#660160: php-mail-mimedecode: _decodeHeader is recursive

Thomas Goirand thomas at goirand.fr
Sat Feb 18 06:07:28 UTC 2012


On 02/17/2012 07:59 AM, Jasen Betts wrote:
> Package: php-mail-mimedecode
> Version: 1.5.0-3
> Severity: normal
> 
> 
> _decodeHeader is recursive in nature re-parsing its output until no
> more is found. this leads to some headers that contain encoded versions 
> of what looks like RFC2047 data to be misrepresented,
> 
> EG: "test =?us-ascii?B?PT9VVEYtOD9RP3h4Pz0=?= 123"
> should decode to "test =?UTF-8?Q?xx?= 123"
> but does not.
> 
> it also folds all character sets together losing some of the
> information it it meant to retrieve, 
> 
> here is a corrected version which consistently outputs utf-8:

Hi,

Did you consider reporting this upstream? http://pear.php.net also has a
bug tracker. I'd rather not carry a Debian specific patch, and have your
patch accepted upstream (even if that means backporting it for
stable-proposed-updates).

Please let me know,

Thomas





More information about the pkg-php-maint mailing list