diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-24 09:28:59 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-24 09:28:59 +0000 |
| commit | 5ccb2b88ddec6daa6f78ab29a6f18b888184b548 (patch) | |
| tree | 65ad8965567f41fde93b15415f2a44f5360f884a /roundcubemail/program/steps | |
| parent | a640934e130ae438914dec1390e2dc0ea71175e7 (diff) | |
- fix bug in css cleanup of html messages
git-svn-id: https://svn.roundcube.net/trunk@3410 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/mail/func.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index e8600ef55..b2e4af3a2 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/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('<div class="rcmBody"\\1>', '</div>'), $out); + if (!preg_match('/<div class="rcmBody"/', $out)) + $out = '<div class="rcmBody">' . $out . '</div>'; + // quote <? of php and xml files that are specified as text/html $out = preg_replace(array('/<\?/', '/\?>/'), array('<?', '?>'), $out); |
