From 7813c6ede9ced1ea9735bb99fe85e1bc38efda12 Mon Sep 17 00:00:00 2001 From: thomasb Date: Wed, 9 Feb 2011 16:06:20 +0000 Subject: Fix stripping invalid comments. Changes from r4483 also stripped entire CSS blocks packed in comments git-svn-id: https://svn.roundcube.net/trunk@4517 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/lib/washtml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roundcubemail/program/lib/washtml.php') diff --git a/roundcubemail/program/lib/washtml.php b/roundcubemail/program/lib/washtml.php index f9daadbf5..0f8dc7ee6 100644 --- a/roundcubemail/program/lib/washtml.php +++ b/roundcubemail/program/lib/washtml.php @@ -273,7 +273,7 @@ class washtml $this->config['base_url'] = ''; // Remove invalid HTML comments (#1487759) - $html = preg_replace('/]*>/', '', $html); + $html = preg_replace('/