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

trac at roundcube.net trac at roundcube.net
Thu Nov 4 13:42:22 CET 2010


Author: alec
Date: 2010-11-04 07:42:22 -0500 (Thu, 04 Nov 2010)
New Revision: 4177

Modified:
   trunk/roundcubemail/program/include/rcube_shared.inc
Log:
- remove charset=binary from content-type


Modified: trunk/roundcubemail/program/include/rcube_shared.inc
===================================================================
--- trunk/roundcubemail/program/include/rcube_shared.inc	2010-11-04 09:59:55 UTC (rev 4176)
+++ trunk/roundcubemail/program/include/rcube_shared.inc	2010-11-04 12:42:22 UTC (rev 4177)
@@ -476,6 +476,11 @@
     if (!$mime_type) {
         $mime_type = $failover;
     }
+    else {
+        // sometimes content-type contains charset definition,
+        // remove useless "charset=binary", should we remove any charset def. here?
+        $mime_type = preg_replace('/; charset=binary;*/i', '', $mime_type);
+    }
 
     return $mime_type;
 }

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



More information about the Svn mailing list