]> git.donarmstrong.com Git - roundcube.git/blobdiff - program/lib/washtml.php
Imported Upstream version 0.5.3+dfsg
[roundcube.git] / program / lib / washtml.php
index e8befe835e92934d4247875cf8760d237af5cec0..a5eeb841b880413b213a9b1d24f6103627044f1e 100644 (file)
@@ -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);