summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_washtml.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-10-04 09:40:37 +0200
committerAleksander Machniak <alec@alec.pl>2013-10-04 09:40:37 +0200
commitaf79a7b837151af793b5bd2788de3635ab96b1e3 (patch)
treee8cb641f31c0a2881de8e19cc54e6ad019d06637 /program/lib/Roundcube/rcube_washtml.php
parenteafd5b1aa4e67c4de18fc09493540b55dc647220 (diff)
Fixed issues where HTML comments inside style tag would hang Internet Explorer
Diffstat (limited to 'program/lib/Roundcube/rcube_washtml.php')
-rw-r--r--program/lib/Roundcube/rcube_washtml.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_washtml.php b/program/lib/Roundcube/rcube_washtml.php
index a42b61aac..e7467545f 100644
--- a/program/lib/Roundcube/rcube_washtml.php
+++ b/program/lib/Roundcube/rcube_washtml.php
@@ -455,7 +455,7 @@ class rcube_washtml
}
// fix (unknown/malformed) HTML tags before "wash"
- $html = preg_replace_callback('/(<[\/]*)([^\s>]+)/', array($this, 'html_tag_callback'), $html);
+ $html = preg_replace_callback('/(<(?!\!)[\/]*)([^\s>]+)/', array($this, 'html_tag_callback'), $html);
// Remove invalid HTML comments (#1487759)
// Don't remove valid conditional comments