From 5799531e3f3c14cce79076c99d5bec47bf910907 Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 24 Mar 2010 09:28:59 +0000 Subject: - fix bug in css cleanup of html messages --- program/steps/mail/func.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index e8600ef55..b2e4af3a2 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -938,7 +938,7 @@ function rcmail_message_body($attrib) $body = rcmail_print_body($part, array('safe' => $safe_mode, 'plain' => !$CONFIG['prefer_html'])); if ($part->ctype_secondary == 'html') - $out .= html::div('message-htmlpart', rcmail_html4inline($body, $attrib['id'])); + $out .= html::div('message-htmlpart', rcmail_html4inline($body, $attrib['id'] . ' div.rcmBody')); else $out .= html::div('message-part', $body); } @@ -1036,6 +1036,9 @@ function rcmail_html4inline($body, $container_id) array('
', '
'), $out); + if (!preg_match('/
'; + // quote /'), array('<?', '?>'), $out); -- cgit v1.2.3