[interchange] Fixed lookup for transfer encoding with text/html

Stefan Hornburg interchange-cvs at icdevgroup.org
Mon Feb 24 18:34:27 UTC 2014


commit b56064a1a8f9f468fbaae3134216c6383e8af317
Author: Marco Pessotto <melmothx at gmail.com>
Date:   Mon Feb 24 14:45:18 2014 +0100

    Fixed lookup for transfer encoding with text/html
    
    When UTF-8 was active, the content part was not just text/html,
    so the hash lookup for the transfer encoding to use returned undef
    and defaults to 8-bit, which is not safe for mail.

 code/UserTag/email.tag |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/code/UserTag/email.tag b/code/UserTag/email.tag
index c4361d3..eaaf5fe 100644
--- a/code/UserTag/email.tag
+++ b/code/UserTag/email.tag
@@ -189,6 +189,7 @@ sub {
 		my %encoding_types = (
 			'text/plain' => ($utf8 ? 'quoted-printable' : '8bit'),
 			'text/html' => 'quoted-printable',
+            'text/html; charset=UTF-8' => 'quoted-printable',
 		);
 
 		for my $ref (@$att) {



More information about the interchange-cvs mailing list