diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-03-22 09:35:47 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-03-22 09:35:47 +0100 |
commit | 1bce1420589c62176dd34bb5fc0fab206a25d41e (patch) | |
tree | 7a75e9537026a0b85bda7e20ff2f58e9f7da3b0b /program/lib/Roundcube | |
parent | aa4b379e9fe539187ff78aa2fa972ca5674f5050 (diff) |
Fix handling of some conditional comment tags in HTML message (#1489004)
Diffstat (limited to 'program/lib/Roundcube')
-rw-r--r-- | program/lib/Roundcube/rcube_washtml.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_washtml.php b/program/lib/Roundcube/rcube_washtml.php index 2a261419f..27dff9f48 100644 --- a/program/lib/Roundcube/rcube_washtml.php +++ b/program/lib/Roundcube/rcube_washtml.php @@ -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); |