summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-04-15 18:34:52 +0000
committeralecpl <alec@alec.pl>2008-04-15 18:34:52 +0000
commitd7a411f099596cbc8e749e1f0802ac2bb2c6289e (patch)
treea645e8074874b7140bce51b1bba1aa170deca725 /program/steps/mail
parent76a89bf04d7c3dd6b6261ca55a24fd57a30d50cb (diff)
#1484391, #1484403
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/func.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 205db2f91..b75b1150c 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -1139,7 +1139,8 @@ function rcmail_sanitize_html($body, $container_id)
// add comments arround html and other tags
$out = preg_replace(array(
- '/(<!DOCTYPE.+)/i',
+ '/(<!DOCTYPE[^>]*>)/i',
+ '/(<\?xml[^>]*>)/i',
'/(<\/?html[^>]*>)/i',
'/(<\/?head[^>]*>)/i',
'/(<title[^>]*>.*<\/title>)/Ui',