[Svn] r4517 - trunk/roundcubemail/program/lib

trac at roundcube.net trac at roundcube.net
Wed Feb 9 17:06:20 CET 2011


Author: thomasb
Date: 2011-02-09 10:06:20 -0600 (Wed, 09 Feb 2011)
New Revision: 4517

Modified:
   trunk/roundcubemail/program/lib/washtml.php
Log:
Fix stripping invalid comments. Changes from r4483 also stripped entire CSS blocks packed in comments

Modified: trunk/roundcubemail/program/lib/washtml.php
===================================================================
--- trunk/roundcubemail/program/lib/washtml.php	2011-02-09 12:46:46 UTC (rev 4516)
+++ trunk/roundcubemail/program/lib/washtml.php	2011-02-09 16:06:20 UTC (rev 4517)
@@ -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);

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list