Changeset 4517 in subversion


Ignore:
Timestamp:
Feb 9, 2011 11:06:20 AM (2 years ago)
Author:
thomasb
Message:

Fix stripping invalid comments. Changes from r4483 also stripped entire CSS blocks packed in comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/lib/washtml.php

    r4483 r4517  
    274274 
    275275    // Remove invalid HTML comments (#1487759) 
    276     $html = preg_replace('/<![^>]*>/', '', $html); 
     276    $html = preg_replace('/<!--[^->]*>/', '', $html); 
    277277 
    278278    @$node->loadHTML($html); 
Note: See TracChangeset for help on using the changeset viewer.