Changeset 4024 in subversion for trunk/roundcubemail/program/steps/mail/func.inc
- Timestamp:
- Sep 30, 2010 6:07:53 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/steps/mail/func.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/steps/mail/func.inc
r4023 r4024 664 664 // charset was converted to UTF-8 in rcube_imap::get_message_part(), 665 665 // -> change charset specification in HTML accordingly 666 $charset_pattern = '(<meta\s+[^>]* content=)[\'"]?(\w+\/\w+;\s*charset=)([a-z0-9-_]+[\'"]?)';666 $charset_pattern = '(<meta\s+[^>]*content=)[\'"]?(\w+\/\w+;\s*charset=)([a-z0-9-_]+[\'"]?)'; 667 667 if (preg_match("/$charset_pattern/Ui", $html)) { 668 668 $html = preg_replace("/$charset_pattern/i", '\\1"\\2'.RCMAIL_CHARSET.'"', $html); … … 674 674 $html = substr_replace($html, '<meta http-equiv="Content-Type" content="text/html; charset='.RCMAIL_CHARSET.'" />', intval(stripos($html, '<head>')+6), 0); 675 675 } 676 677 676 // turn relative into absolute urls 678 677 $html = rcmail_resolve_base($html);
Note: See TracChangeset
for help on using the changeset viewer.
