Fix handling of some conditional comment tags in HTML message (#1489004)

Conflicts:

	CHANGELOG
pull/88/head
Aleksander Machniak 11 years ago
parent ffa0c53236
commit da595a5027

@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================
- Fix handling of some conditional comment tags in HTML message (#1489004)
- Fix so forward as attachment works if additional attachment is added by message_compose hook (#1489000)
- Better handling of session errors in ajax requests (#1488960)
- Fix HTML part detection for some specific message structures (#1488992)

@ -413,7 +413,8 @@ class rcube_washtml
// Remove invalid HTML comments (#1487759)
// Don't remove valid conditional comments
$html = preg_replace('/<!--[^->[\n]*>/', '', $html);
// Don't remove MSOutlook (<!-->) conditional comments (#1489004)
$html = preg_replace('/<!--[^->\[\n]+>/', '', $html);
// turn relative into absolute urls
$html = self::resolve_base($html);

Loading…
Cancel
Save