PHP bug #32547 workaround: remove <title> tag because of libxml2 library problem (#1485178)

release-0.6
alecpl 16 years ago
parent 9103d1706d
commit c1b81f578a

@ -564,6 +564,9 @@ function rcmail_print_body($part, $p = array())
$html = substr_replace($html, '<meta http-equiv="Content-Type" content="text/html; charset='.RCMAIL_CHARSET.'" />', intval(stripos($html, '</head>')), 0);
}
// PHP bug #32547 workaround: remove title tag
$html = preg_replace('/<title>.*<\/title>/', '', $html);
// clean HTML with washhtml by Frederic Motte
$wash_opts = array(
'show_washed' => false,

Loading…
Cancel
Save