summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-02-09 16:06:20 +0000
committerthomascube <thomas@roundcube.net>2011-02-09 16:06:20 +0000
commitb1d31eea94a8ed9e26ee97ad0e401cb03708d56f (patch)
tree7a3e3eebf73c6922854a98d937530f804f287f7c /program
parentb389252f2b5db908374cd1f839a9d89edec0894d (diff)
Fix stripping invalid comments. Changes from r4483 also stripped entire CSS blocks packed in comments
Diffstat (limited to 'program')
-rw-r--r--program/lib/washtml.php2
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);