From b1d31eea94a8ed9e26ee97ad0e401cb03708d56f Mon Sep 17 00:00:00 2001 From: thomascube Date: Wed, 9 Feb 2011 16:06:20 +0000 Subject: Fix stripping invalid comments. Changes from r4483 also stripped entire CSS blocks packed in comments --- program/lib/washtml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/lib/washtml.php') 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('/