Changeset 3504594 in github for program/steps/mail/func.inc


Ignore:
Timestamp:
Jun 7, 2008 8:51:21 AM (5 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
c8fb2b7
Parents:
c3ab7537
Message:

Change meta-charset specififcation in HTML to UTF-8; no need for mb_convert_encoding() anymore

File:
1 edited

Legend:

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

    rcfe4a6b r3504594  
    535535  // text/html 
    536536  else if ($part->ctype_secondary == 'html') { 
     537    // charset was converted to UTF-8 in rcube_imap::get_message_part() -> change charset specification in HTML accordingly 
     538    $html = preg_replace('/(\s+content=[\'"]\w+\/\w+;\s+charset)=([a-z0-9-]+)/i', '\\1='.RCMAIL_CHARSET, $part->body); 
     539     
    537540    // clean HTML with washhtml by Frederic Motte 
    538     $body = washtml::wash($part->body, array( 
     541    $body = washtml::wash($html, array( 
    539542      'show_washed' => false, 
    540543      'allow_remote' => $safe, 
    541544      'blocked_src' => "./program/blocked.gif", 
    542       'charset' => 'UTF-8', 
     545      'charset' => RCMAIL_CHARSET, 
    543546      'cid_map' => $part->replaces, 
    544547      ), $full_inline); 
Note: See TracChangeset for help on using the changeset viewer.