[interchange] Encode contents of html attribute properly if email body is empty.

Stefan Hornburg interchange-cvs at icdevgroup.org
Tue Mar 5 17:45:33 UTC 2013


commit fd102bba39457a3e54599171ad204baa278788d0
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Tue Mar 5 18:43:31 2013 +0100

    Encode contents of html attribute properly if email body is empty.

 code/UserTag/email.tag |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/code/UserTag/email.tag b/code/UserTag/email.tag
index 41ab62a..d1756ac 100644
--- a/code/UserTag/email.tag
+++ b/code/UserTag/email.tag
@@ -118,7 +118,7 @@ sub {
             }
             else {
                 $msg_args{Type} ||= 'text/html'  . ($utf8 ? '; charset=UTF-8' : '');
-                $msg_args{Data} ||= $opt->{html};
+                $msg_args{Data} ||=  ($utf8 ? utf8_to_other($opt->{html}, 'utf-8') : $opt->{html});
             }
 
 			$att1_format = 'flowed';



More information about the interchange-cvs mailing list