[Tickets #7107] Bug in imp/lib/MIME/Contents.php

bugs at horde.org bugs at horde.org
Thu Jul 24 11:08:51 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7107
------------------------------------------------------------------------------
  Ticket             | 7107
  Created By         | tomi.leppikangas at gmail.com
  Summary            | Bug in imp/lib/MIME/Contents.php
  Queue              | Horde Groupware Webmail Edition
  Version            | 1.1.1
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


tomi.leppikangas at gmail.com (2008-07-24 07:08) wrote:

Bug described in http://bugs.horde.org/ticket/6424 appears again in  
webmail edition 1.1.

Patch below fixed this.

diff -ru horde-webmail-1.1.1/imp/lib/MIME/Contents.php  
horde-test/imp/lib/MIME/Contents.php
--- horde-webmail-1.1.1/imp/lib/MIME/Contents.php	2008-06-14  
02:55:34.000000000 +0300
+++ horde-test/imp/lib/MIME/Contents.php	2008-07-24 14:03:21.000000000 +0300
@@ -764,7 +764,7 @@
              }
              $contents = $this->getBodyPart($id);
              if (($mime_part->getPrimaryType() == 'text') &&
-                ($mime_part->getCharset() == 'us-ascii') &&
+                (String::lower($mime_part->getCharset()) == 'us-ascii') &&
                  MIME::is8bit($contents)) {
                  $contents = String::convertCharset($contents, 'US-ASCII');
              }






More information about the bugs mailing list