Changeset 4483 in subversion


Ignore:
Timestamp:
Feb 3, 2011 6:52:38 AM (2 years ago)
Author:
alec
Message:
  • Fix handling of invalid HTML comments in messages (#1487759)
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r4479 r4483  
    22=========================== 
    33 
     4- Fix handling of invalid HTML comments in messages (#1487759) 
    45- Fix parsing FETCH response for very long headers (#1487753) 
    56- Fix add/remove columns in message list when message_sort_order isn't set (#1487751) 
  • trunk/roundcubemail/program/lib/washtml.php

    r4366 r4483  
    7676 * - added RFC2397 support 
    7777 * - base URL support 
     78 * - invalid HTML comments removal before parsing 
    7879 */ 
    7980 
     
    272273      $this->config['base_url'] = ''; 
    273274 
     275    // Remove invalid HTML comments (#1487759) 
     276    $html = preg_replace('/<![^>]*>/', '', $html); 
     277 
    274278    @$node->loadHTML($html); 
    275279    return $this->dumpHtml($node); 
Note: See TracChangeset for help on using the changeset viewer.