[Svn] r4486 - trunk/roundcubemail/program/include

trac at roundcube.net trac at roundcube.net
Thu Feb 3 15:35:52 CET 2011


Author: alec
Date: 2011-02-03 08:35:52 -0600 (Thu, 03 Feb 2011)
New Revision: 4486

Modified:
   trunk/roundcubemail/program/include/rcube_imap_generic.php
Log:
- Convert Content-type to lowercase, fixes lack of attachment icon for some messages (#1487750)


Modified: trunk/roundcubemail/program/include/rcube_imap_generic.php
===================================================================
--- trunk/roundcubemail/program/include/rcube_imap_generic.php	2011-02-03 13:58:19 UTC (rev 4485)
+++ trunk/roundcubemail/program/include/rcube_imap_generic.php	2011-02-03 14:35:52 UTC (rev 4486)
@@ -1631,7 +1631,7 @@
                         break;
                         case 'content-type':
                             $ctype_parts = preg_split('/[; ]/', $string);
-                            $result[$id]->ctype = array_shift($ctype_parts);
+                            $result[$id]->ctype = strtolower(array_shift($ctype_parts));
                             if (preg_match('/charset\s*=\s*"?([a-z0-9\-\.\_]+)"?/i', $string, $regs)) {
                                 $result[$id]->charset = $regs[1];
                             }

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list