Changeset 1662 in subversion


Ignore:
Timestamp:
Aug 21, 2008 2:08:52 AM (5 years ago)
Author:
alec
Message:

#1485287: allow underline in html charset for proper replacement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/mail/func.inc

    r1647 r1662  
    577577    // charset was converted to UTF-8 in rcube_imap::get_message_part() -> change charset specification in HTML accordingly 
    578578    $html = $part->body;  
    579     if (preg_match('/(\s+content=[\'"]\w+\/\w+;\s*charset)=([a-z0-9-]+)/i', $html))  
    580       $html = preg_replace('/(\s+content=[\'"]\w+\/\w+;\s*charset)=([a-z0-9-]+)/i', '\\1='.RCMAIL_CHARSET, $html);  
     579    if (preg_match('/(\s+content=[\'"]\w+\/\w+;\s*charset)=([a-z0-9-_]+)/i', $html))  
     580      $html = preg_replace('/(\s+content=[\'"]\w+\/\w+;\s*charset)=([a-z0-9-_]+)/i', '\\1='.RCMAIL_CHARSET, $html);  
    581581    else { 
    582582      // add <head> for malformed messages, washtml cannot work without that 
Note: See TracChangeset for help on using the changeset viewer.