Changeset 1494 in subversion
- Timestamp:
- Jun 9, 2008 8:22:54 AM (5 years ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/steps/mail/func.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/steps/mail/func.inc
r1487 r1494 536 536 else if ($part->ctype_secondary == 'html') { 537 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); 538 $html = $part->body; 539 if(preg_match('/(\s+content=[\'"]\w+\/\w+;\s+charset)=([a-z0-9-]+)/i', $html)) 540 $html = preg_replace('/(\s+content=[\'"]\w+\/\w+;\s+charset)=([a-z0-9-]+)/i', '\\1='.RCMAIL_CHARSET, $html); 541 else 542 $html = substr_replace($html, '<meta http-equiv="Content-Type" content="text/html; charset='.RCMAIL_CHARSET.'" />', intval(stripos($html, '</head>')), 0); 539 543 540 544 // clean HTML with washhtml by Frederic Motte
Note: See TracChangeset
for help on using the changeset viewer.
