diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-08-27 08:09:00 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-08-27 08:09:00 +0000 |
| commit | 5dec5fa54379634625362aee86b927daacd09132 (patch) | |
| tree | ea262dba0cdd818a7f7f6e5940ec36d1d5d3d5b6 /roundcubemail/program/steps | |
| parent | af18ca2150d3838bc4f4124fb9455a0e2fc77a48 (diff) | |
Strip xmlns attributes from html tag
git-svn-id: https://svn.roundcube.net/trunk@2878 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/mail/func.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index 784b8f399..87f7bc42f 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -676,11 +676,13 @@ function rcmail_wash_html($html, $p = array(), $cid_replaces) '/(<\/nobr>)(\s+)(<nobr>)/i', // space(s) between <NOBR> '/<title>.*<\/title>/i', // PHP bug #32547 workaround: remove title tag '/^(\0\0\xFE\xFF|\xFF\xFE\0\0|\xFE\xFF|\xFF\xFE|\xEF\xBB\xBF)/', // byte-order mark (only outlook?) + '/<html\sxmlns:[a-z]=[^>]+>/i', // washtml/DOMDocument cannot handle xml namespaces ); $html_replace = array( '\\1'.' '.'\\3', '', '', + '<html>', ); $html = preg_replace($html_search, $html_replace, $html); |
