From a2f2c5e1b7c8ed6d398eb6fd751f94553fa7d38e Mon Sep 17 00:00:00 2001 From: thomascube Date: Tue, 14 Mar 2006 21:11:32 +0000 Subject: Don't remove internal html tags in plaintext messages --- program/steps/mail/func.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'program') diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index dc510b059..865aff0bf 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -1010,7 +1010,12 @@ function rcmail_message_body($attrib) // $body = rcmail_print_body($part['body'], $part['ctype_primary'], $part['ctype_secondary'], $part['encoding'], $safe_mode); $body = rcmail_print_body($part, $safe_mode); $out .= '
'; - $out .= rcmail_mod_html_body($body, $attrib['id']); + + if ($part['ctype_secondary']!='plain') + $out .= rcmail_mod_html_body($body, $attrib['id']); + else + $out .= $body; + $out .= "
\n"; } } -- cgit v1.2.3