- Trim HTML message before washing, to make sure that BOM is removed even when prepended by some whitespace chars (#1487915)

release-0.6
alecpl 14 years ago
parent e4d0947550
commit 21461dce77

@ -575,7 +575,7 @@ function rcmail_wash_html($html, $p = array(), $cid_replaces)
'', '',
'<html>', '<html>',
); );
$html = preg_replace($html_search, $html_replace, $html); $html = preg_replace($html_search, $html_replace, trim($html));
// PCRE errors handling (#1486856), should we use something like for every preg_* use? // PCRE errors handling (#1486856), should we use something like for every preg_* use?
if ($html === null && ($preg_error = preg_last_error()) != PREG_NO_ERROR) { if ($html === null && ($preg_error = preg_last_error()) != PREG_NO_ERROR) {

Loading…
Cancel
Save