From b6673c4e416affcfe644473cb8fc6009d04ee971 Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 16 Oct 2009 16:25:10 +0000 Subject: - fix regular expression for malformed tags handler --- program/steps/mail/func.inc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 0a8664cde..445b89d94 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -697,7 +697,7 @@ function rcmail_wash_html($html, $p = array(), $cid_replaces) $html = preg_replace($html_search, $html_replace, $html); // fix (unknown/malformed) HTML tags before "wash" - $html = preg_replace_callback('/(<[\/!]*)([^ >]+)/', 'rcmail_html_tag_callback', $html); + $html = preg_replace_callback('/(<[\/]*)([^\s>]+)/', 'rcmail_html_tag_callback', $html); // charset was converted to UTF-8 in rcube_imap::get_message_part(), // -> change charset specification in HTML accordingly @@ -908,10 +908,6 @@ function rcmail_html_tag_callback($matches) { $tagname = $matches[2]; - // html comments (#1486189) - if ($matches[1] == ' '/[^a-z0-9_-]/i', // forbidden characters -- cgit v1.2.3