summaryrefslogtreecommitdiff
path: root/roundcubemail/program/lib/washtml.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-05-16 07:11:02 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-05-16 07:11:02 +0000
commitfdf405effa6a7a75361ee976c1f73c03749b7e3f (patch)
tree46282b1c3147f7e44f6bd47d89e965f4d765d8e5 /roundcubemail/program/lib/washtml.php
parent10dc5b4e0ac49c7aa43266857ddd99187d3c93ec (diff)
- Fix invalid comments handling (see example message in #1487915)
git-svn-id: https://svn.roundcube.net/trunk@4771 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/lib/washtml.php')
-rw-r--r--roundcubemail/program/lib/washtml.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/lib/washtml.php b/roundcubemail/program/lib/washtml.php
index e8befe835..a5eeb841b 100644
--- a/roundcubemail/program/lib/washtml.php
+++ b/roundcubemail/program/lib/washtml.php
@@ -274,7 +274,7 @@ class washtml
// Remove invalid HTML comments (#1487759)
// Don't remove valid conditional comments
- $html = preg_replace('/<!--[^->[]*>/', '', $html);
+ $html = preg_replace('/<!--[^->[\n]*>/', '', $html);
@$node->loadHTML($html);
return $this->dumpHtml($node);