summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-02-09 16:07:22 +0000
committerthomascube <thomas@roundcube.net>2011-02-09 16:07:22 +0000
commit57d261bb8524387e794951e0ed6462fa677daace (patch)
treecdbe6fbd83eba53ebe4efb8b8dc060519419d345 /program
parent99897b7c4e52a5ff026c3828b84653f460f571f0 (diff)
Imporove stripping of invalid comments added in r4483v0.5.1@4518
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);