[dev] Bug in MIME.php (patch provided)
    Jan Kuipers 
    jrkuipers at lauwerscollege.nl
       
    Mon Sep 13 17:47:49 UTC 2010
    
    
  
Regarding FRAMEWORK_3 branch:
I'm having problems with the latest revision of MIME.php. P.e. an  
e-mail with an attachment doesn't display my signature (text/plain)  
inline and it strips the extension of a docx file.
The following patch solves this bug:
Index: MIME.php
===================================================================
RCS file: /repository/framework/MIME/Attic/MIME.php,v
retrieving revision 1.139.4.49
diff -u -r1.139.4.49 MIME.php
--- MIME.php	1 Sep 2010 20:29:40 -0000	1.139.4.49
+++ MIME.php	13 Sep 2010 17:25:32 -0000
@@ -448,7 +448,7 @@
                  $name .
                  (($wrap) ? ('*' . $i++) : '') .
                  (($encode) ? '*' : '') .
-                '=' . $val;
+                '="' . $val . '"';
          }
          return implode('; ', $output);
So imho $val should be quoted (like 1.139.4.48)
-- 
Jan Kuipers
Systeembeheer Lauwers College
E: jrkuipers at lauwerscollege.nl
    
    
More information about the dev
mailing list