Changeset 2397 in subversion


Ignore:
Timestamp:
Apr 17, 2009 2:47:30 AM (4 years ago)
Author:
alec
Message:
  • Fix UTF-8 byte-order mark removing (#1485514)
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r2396 r2397  
    22=========================== 
    33 
     4- Fix UTF-8 byte-order mark removing (#1485514) 
    45- Fix folders subscribtions on Konqueror (#1484841)  
    56- Fix debug console on Konqueror and Safari 
  • trunk/roundcubemail/program/steps/mail/func.inc

    r2370 r2397  
    661661    '/<html[^>]*>/im',                  // malformed html: remove html tags (#1485139) 
    662662    '/<\/html>/i',                      // malformed html: remove html tags (#1485139) 
    663     '/^[\xFE\xFF\xBB\xBF\x00]+((?:<\!doctype|\<html))/im',      // remove byte-order mark (only outlook?) 
     663    '/^(\0\0\xFE\xFF|\xFF\xFE\0\0|\xFE\xFF|\xFF\xFE|\xEF\xBB\xBF)/',    // byte-order mark (only outlook?) 
    664664  ); 
    665665  $html_replace = array( 
     
    670670    '', 
    671671    '', 
    672     '\\1', 
     672    '', 
    673673  ); 
    674674  $html = preg_replace($html_search, $html_replace, $html); 
Note: See TracChangeset for help on using the changeset viewer.