Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.12

Bug #16706 Incorrectly double-quotes RFC 2231-encoded parameter values
Submitted: 2009-10-16 23:16 UTC
From: asciiphil Assigned: alec
Status: Closed Package: Mail_Mime (version 1.5.2)
PHP Version: 5.2.5 OS: Debian GNU/Linux
Roadmaps: 1.5.3    
Subscription  


 [2009-10-16 23:16 UTC] asciiphil (Phil! Gold)
Description: ------------ When adding parameter values to MIME attachments (e.g. the "name" parameter for the "Content-Type" MIME header), if Mail_Mime determines that RFC 2231 encoding is necessary, it will still put the value in double quotes, which does not match the RFC 2231 spec. I'm attaching a patch to mimePart.php that will only put in the quotes if the parameter is a "regular-parameter", according to RFC 2231's ABNF, and not if it's an "extended-parameter".

Comments

 [2009-10-16 23:18 UTC] asciiphil (Phil! Gold)
 [2009-12-03 18:42 UTC] alec (Aleksander Machniak)
My patch in #14211 also contains fix for this issue and apropriate fixes for test scripts.
 [2009-12-18 16:34 UTC] alec (Aleksander Machniak)
-Roadmap Versions: +Roadmap Versions: 1.5.3
 [2009-12-18 16:38 UTC] alec (Aleksander Machniak)
-Assigned To: +Assigned To: alec
 [2009-12-21 15:10 UTC] alec (Aleksander Machniak)
-Status: Assigned +Status: Closed
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.