You are viewing a plain text version of this content. The canonical link for it is here.
Posted to zeta-commits@incubator.apache.org by de...@apache.org on 2011/04/16 13:11:38 UTC

[zeta-commits] svn commit: r1093987 - in /incubator/zetacomponents/trunk/Mail: ChangeLog src/parser/parts/text_parser.php

Author: derick
Date: Sat Apr 16 13:11:37 2011
New Revision: 1093987

URL: http://svn.apache.org/viewvc?rev=1093987&view=rev
Log:
- Fixed #ZETACOMP-75: Mail parser doesn't understand uppercase "CHARSET" that
  alpine uses.

Modified:
    incubator/zetacomponents/trunk/Mail/ChangeLog
    incubator/zetacomponents/trunk/Mail/src/parser/parts/text_parser.php

Modified: incubator/zetacomponents/trunk/Mail/ChangeLog
URL: http://svn.apache.org/viewvc/incubator/zetacomponents/trunk/Mail/ChangeLog?rev=1093987&r1=1093986&r2=1093987&view=diff
==============================================================================
--- incubator/zetacomponents/trunk/Mail/ChangeLog (original)
+++ incubator/zetacomponents/trunk/Mail/ChangeLog Sat Apr 16 13:11:37 2011
@@ -8,6 +8,8 @@
   the path fails.
 - Fixed #16470: Mail test suite causes fatal errors because of transport
   errors in destructor.
+- Fixed #ZETACOMP-75: Mail parser doesn't understand uppercase "CHARSET" that
+  alpine uses.
 
 
 1.7 - Monday 21 December 2009

Modified: incubator/zetacomponents/trunk/Mail/src/parser/parts/text_parser.php
URL: http://svn.apache.org/viewvc/incubator/zetacomponents/trunk/Mail/src/parser/parts/text_parser.php?rev=1093987&r1=1093986&r2=1093987&view=diff
==============================================================================
--- incubator/zetacomponents/trunk/Mail/src/parser/parts/text_parser.php (original)
+++ incubator/zetacomponents/trunk/Mail/src/parser/parts/text_parser.php Sat Apr 16 13:11:37 2011
@@ -95,7 +95,7 @@ class ezcMailTextParser extends ezcMailP
         $charset = "us-ascii"; // RFC 2822 default
         if ( isset( $this->headers['Content-Type'] ) )
         {
-            preg_match( '/\s*charset\s?=\s?"?([^;"\s]*);?/',
+            preg_match( '/\s*charset\s?=\s?"?([^;"\s]*);?/i',
                             $this->headers['Content-Type'],
                             $parameters );
             if ( count( $parameters ) > 0 )