Changeset 3342 in subversion for trunk/roundcubemail/program/steps/mail/func.inc
- Timestamp:
- Mar 9, 2010 6:23:35 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/steps/mail/func.inc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/steps/mail/func.inc
r3310 r3342 683 683 { 684 684 global $REMOTE_OBJECTS; 685 685 686 686 $p += array('safe' => false, 'inline_html' => true); 687 687 … … 689 689 $html_search = array( 690 690 '/(<\/nobr>)(\s+)(<nobr>)/i', // space(s) between <NOBR> 691 '/<title[^>]*>.*<\/title>/i', // PHP bug #32547 workaround: remove title tag691 '/<title[^>]*>.*<\/title>/i', // PHP bug #32547 workaround: remove title tag 692 692 '/^(\0\0\xFE\xFF|\xFF\xFE\0\0|\xFE\xFF|\xFF\xFE|\xEF\xBB\xBF)/', // byte-order mark (only outlook?) 693 693 '/<html\s[^>]+>/i', // washtml/DOMDocument cannot handle xml namespaces … … 706 706 // charset was converted to UTF-8 in rcube_imap::get_message_part(), 707 707 // -> change charset specification in HTML accordingly 708 $charset_pattern = '(<meta\s+[^>]* )(content=[\'"]?\w+\/\w+;\s*charset)=([a-z0-9-_]+)';708 $charset_pattern = '(<meta\s+[^>]* content=)[\'"]?(\w+\/\w+;\s*charset=)([a-z0-9-_]+[\'"]?)'; 709 709 if (preg_match("/$charset_pattern/Ui", $html)) { 710 $html = preg_replace("/$charset_pattern/i", '\\1 \\2='.RCMAIL_CHARSET, $html);710 $html = preg_replace("/$charset_pattern/i", '\\1"\\2'.RCMAIL_CHARSET.'"', $html); 711 711 } 712 712 else {
Note: See TracChangeset
for help on using the changeset viewer.
