6.0.0-beta1
7/6/25

[#7107] Bug in imp/lib/MIME/Contents.php
Summary Bug in imp/lib/MIME/Contents.php
Queue Horde Groupware Webmail Edition
Queue Version 1.1.1
Type Bug
State Resolved
Priority 1. Low
Owners
Requester tomi.leppikangas (at) gmail (dot) com
Created 07/24/2008 (6191 days ago)
Due
Updated 07/24/2008 (6191 days ago)
Assigned
Resolved 07/24/2008 (6191 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
07/24/2008 08:54:02 PM Jan Schneider Comment #3
State ⇒ Resolved
Reply to this comment
It doesn't really appear *again* because this is a completely 
different piece of code. But it's the same bug and the correct fix, 
thanks.
07/24/2008 08:53:32 PM CVS Commit Comment #2 Reply to this comment
07/24/2008 11:08:50 AM tomi (dot) leppikangas (at) gmail (dot) com Comment #1
Priority ⇒ 1. Low
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Horde Groupware Webmail Edition
Summary ⇒ Bug in imp/lib/MIME/Contents.php
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
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');

              }


Saved Queries