diff options
author | thomascube <thomas@roundcube.net> | 2011-02-09 16:06:20 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-02-09 16:06:20 +0000 |
commit | b1d31eea94a8ed9e26ee97ad0e401cb03708d56f (patch) | |
tree | 7a3e3eebf73c6922854a98d937530f804f287f7c /program/lib/washtml.php | |
parent | b389252f2b5db908374cd1f839a9d89edec0894d (diff) |
Fix stripping invalid comments. Changes from r4483 also stripped entire CSS blocks packed in comments
Diffstat (limited to 'program/lib/washtml.php')
-rw-r--r-- | program/lib/washtml.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/washtml.php b/program/lib/washtml.php index f9daadbf5..0f8dc7ee6 100644 --- a/program/lib/washtml.php +++ b/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); |