From 57d261bb8524387e794951e0ed6462fa677daace Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Wed, 09 Feb 2011 11:07:22 -0500
Subject: [PATCH] Imporove stripping of invalid comments added in r4483

---
 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 f9daadb..0f8dc7e 100644
--- a/program/lib/washtml.php
+++ b/program/lib/washtml.php
@@ -273,7 +273,7 @@
       $this->config['base_url'] = '';
 
     // Remove invalid HTML comments (#1487759)
-    $html = preg_replace('/<![^>]*>/', '', $html);
+    $html = preg_replace('/<!--[^->]*>/', '', $html);
 
     @$node->loadHTML($html);
     return $this->dumpHtml($node);

--
Gitblit v1.9.1