From 6c2d7ed24343e510c2e0bd3e754436c48a4623a8 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Thu, 27 Aug 2009 04:09:00 -0400 Subject: [PATCH] Strip xmlns attributes from html tag --- program/steps/mail/func.inc | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 784b8f3..87f7bc4 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -676,11 +676,13 @@ '/(<\/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); -- Gitblit v1.9.1