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_mimeDecode » Bug #7699

mimeDecode should lowercase ctype_*

Details

Request #7699mimeDecode should lowercase ctype_*
Submitted2006-05-22 20:32 UTC
Fromanomie at users dot sf dot net
StatusFeedback
PackageMail_mimeDecode
PHP Version4.3.8
OSLinux
Roadmaps1.6.0

Comments

[2006-05-22 20:32 UTC] anomie at users dot sf dot net

Description:
------------
Mail/mimeDecode.php revision 1.46

Quoting RFC2045:
> All media type values, subtype values, and parameter
> names as defined are case-insensitive. However,
> parameter values are case-sensitive unless otherwise
> specified for the specific parameter.

RFC2183 also mentions that the Content-Disposition is case-insensitive.

It would make mimeDecode easier to use if ctype_primary, ctype_secondary, the ctype_parameters[] keys (but not values), disposition, and probably d_parameters[] keys were passed through strtolower().