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

Stefan Hornburg <[email protected]>
Newsgroups gmane.comp.web.interchange.cvs
Message-ID <[email protected]>
commit fd102bba39457a3e54599171ad204baa278788d0
Author: Stefan Hornburg (Racke) <[email protected]>
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';
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.