From 968754b09ebc1b501d0840e8c4eb3d0f617a5080 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Tue, 19 Apr 2011 04:23:31 -0400 Subject: [PATCH] - Fix regression in html conditional comments handling by washtml class --- program/lib/washtml.php | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/program/lib/washtml.php b/program/lib/washtml.php index 0f8dc7e..e8befe8 100644 --- a/program/lib/washtml.php +++ b/program/lib/washtml.php @@ -273,7 +273,8 @@ $this->config['base_url'] = ''; // Remove invalid HTML comments (#1487759) - $html = preg_replace('/<!--[^->]*>/', '', $html); + // Don't remove valid conditional comments + $html = preg_replace('/<!--[^->[]*>/', '', $html); @$node->loadHTML($html); return $this->dumpHtml($node); -- Gitblit v1.9.1