- handle <broadcast> tag in html messages (#1485962)

release-0.6
alecpl 15 years ago
parent 26fa646c8f
commit 74ceb69d11

@ -677,6 +677,7 @@ function rcmail_wash_html($html, $p = array(), $cid_replaces)
'/(<\/nobr>)(\s+)(<nobr>)/i', // space(s) between <NOBR> '/(<\/nobr>)(\s+)(<nobr>)/i', // space(s) between <NOBR>
'/(<[\/]*st1:[^>]+>)/i', // Microsoft's Smart Tags <ST1> '/(<[\/]*st1:[^>]+>)/i', // Microsoft's Smart Tags <ST1>
'/<\/?rte_text>/i', // Rich Text Editor tags (#1485647) '/<\/?rte_text>/i', // Rich Text Editor tags (#1485647)
'/<\/?broadcast[^>]*>/i', // invoices from the Apple Store contains <broadcast> tags (#1485962)
'/<title>.*<\/title>/i', // PHP bug #32547 workaround: remove title tag '/<title>.*<\/title>/i', // PHP bug #32547 workaround: remove title tag
'/<html[^>]*>/im', // malformed html: remove html tags (#1485139) '/<html[^>]*>/im', // malformed html: remove html tags (#1485139)
'/<\/html>/i', // malformed html: remove html tags (#1485139) '/<\/html>/i', // malformed html: remove html tags (#1485139)
@ -690,6 +691,7 @@ function rcmail_wash_html($html, $p = array(), $cid_replaces)
'', '',
'', '',
'', '',
'',
); );
$html = preg_replace($html_search, $html_replace, $html); $html = preg_replace($html_search, $html_replace, $html);

Loading…
Cancel
Save