alecpl
2010-03-24 5799531e3f3c14cce79076c99d5bec47bf910907
- fix bug in css cleanup of html messages


1 files modified
5 ■■■■ changed files
program/steps/mail/func.inc 5 ●●●● patch | view | raw | blame | history
program/steps/mail/func.inc
@@ -938,7 +938,7 @@
        $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 @@
    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('&lt;?', '?&gt;'), $out);