diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-02-09 16:06:20 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-02-09 16:06:20 +0000 |
| commit | 7813c6ede9ced1ea9735bb99fe85e1bc38efda12 (patch) | |
| tree | d71d4f2a0984a907abfce82b46cd3f8c77367f22 /roundcubemail/program | |
| parent | a67eb61c3c74cfe971aeeb9f5b01fb3ba4e22f6f (diff) | |
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
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/lib/washtml.php | 2 |
1 files changed, 1 insertions, 1 deletions
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('/<!--[^->]*>/', '', $html); @$node->loadHTML($html); return $this->dumpHtml($node); |
