Issues

ZF-3041: Zend_Mime_Message::createFromMessage() broken

Issue Type: Bug Created: 2008-04-03T15:11:47.000+0000 Last Updated: 2012-03-26T08:37:01.000+0000 Status: Resolved Fix version(s): - 1.6.2 (13/Oct/08)

Reporter: Matthew Ratzloff (mratzloff) Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_Mime

Related issues: Attachments:

Description

Throws "Unknown header ignored for MimePart..." exception even if message is correctly encoded.

<pre class="highlight">
Index: Message.php
===================================================================
--- Message.php (revision 20)
+++ Message.php (working copy)
@@ -253,7 +253,7 @@
                  * @todo check for characterset and filename
                  */
                 // list($key, $value) = $header;
-                switch($key) {
+                switch(strtolower($key)) {
                     case 'content-type':
                         $newPart->type = $value;
                         break;
@@ -263,7 +263,7 @@
                     case 'content-id':
                         $newPart->id = trim($value,'<>');
                         break;
-                    case 'Content-Disposition':
+                    case 'content-disposition':
                         $newPart->disposition = $value;
                         break;
                     case 'content-description':

Comments

Posted by Wil Sinclair (wil) on 2008-04-18T15:57:39.000+0000

Please evaluate and categorize/assign as necessary.

Posted by old of Satoru Yoshida (yoshida@zend.co.jp) on 2008-09-01T19:13:26.000+0000

Solved in SVN r11197.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts