Author: Alexandru Stanoi
Date: 2007-02-23 09:43:07 +0100 (Fri, 23 Feb 2007)
New Revision: 4676

Log:
- Fixed issue #10312: Fixed the value of ezcMail::QUOTED_PRINTABLE constant.

Modified:
   stable/Mail/1.2/ChangeLog
   stable/Mail/1.2/src/mail.php
   stable/Mail/1.2/src/parser/parts/text_parser.php
   stable/Mail/1.2/tests/parts/text_part_test.php

Modified: stable/Mail/1.2/ChangeLog
===================================================================
--- stable/Mail/1.2/ChangeLog   2007-02-21 12:04:07 UTC (rev 4675)
+++ stable/Mail/1.2/ChangeLog   2007-02-23 08:43:07 UTC (rev 4676)
@@ -7,6 +7,7 @@
 - Fixed bug #010138: Doc of ezcMailMultipartDigest->__construct() incorrect
   (The documentation was correct, the implementation was wrong.)
 - Fixed issue #10283: ImapSet does not return the trailing parenthesis ')'.
+- Fixed issue #10312: Fixed the value of ezcMail::QUOTED_PRINTABLE constant.
 
 
 1.2 - Monday 18 December 2006

Modified: stable/Mail/1.2/src/mail.php
===================================================================
--- stable/Mail/1.2/src/mail.php        2007-02-21 12:04:07 UTC (rev 4675)
+++ stable/Mail/1.2/src/mail.php        2007-02-23 08:43:07 UTC (rev 4676)
@@ -87,7 +87,7 @@
     /**
      * Quoted printable encoding.
      */
-    const QUOTED_PRINTABLE = "quoted_printable";
+    const QUOTED_PRINTABLE = "quoted-printable";
 
     /**
      * Base 64 encoding.

Modified: stable/Mail/1.2/src/parser/parts/text_parser.php
===================================================================
--- stable/Mail/1.2/src/parser/parts/text_parser.php    2007-02-21 12:04:07 UTC 
(rev 4675)
+++ stable/Mail/1.2/src/parser/parts/text_parser.php    2007-02-23 08:43:07 UTC 
(rev 4676)
@@ -90,11 +90,11 @@
         }
 
         $encoding = strtolower( $this->headers['Content-Transfer-Encoding'] );
-        if ( $encoding == 'quoted-printable' )
+        if ( $encoding == ezcMail::QUOTED_PRINTABLE )
         {
             $this->text = quoted_printable_decode( $this->text );
         }
-        else if ( $encoding == 'base64' )
+        else if ( $encoding == ezcMail::BASE64 )
         {
             $this->text = base64_decode( $this->text );
         }

Modified: stable/Mail/1.2/tests/parts/text_part_test.php
===================================================================
--- stable/Mail/1.2/tests/parts/text_part_test.php      2007-02-21 12:04:07 UTC 
(rev 4675)
+++ stable/Mail/1.2/tests/parts/text_part_test.php      2007-02-23 08:43:07 UTC 
(rev 4676)
@@ -111,7 +111,7 @@
     public function testQuotedPrintableEncode()
     {
         $reference = "Content-Type: text/plain; charset=iso-8859-1" . 
ezcMailTools::lineBreak() .
-            "Content-Transfer-Encoding: quoted_printable"  . 
ezcMailTools::lineBreak() . ezcMailTools::lineBreak() .
+            "Content-Transfer-Encoding: quoted-printable"  . 
ezcMailTools::lineBreak() . ezcMailTools::lineBreak() .
             "=E6=F8=E5=0A=F8=E6=E5";
 
         $text = new ezcMailText( "æøå\nøæå", "iso-8859-1", 
ezcMail::QUOTED_PRINTABLE );

-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to