summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-07-05 09:31:18 +0000
committeralecpl <alec@alec.pl>2009-07-05 09:31:18 +0000
commit74ceb69d114b09c2c8ccf05529641fd5fba28160 (patch)
tree78de395d792d580d5747c48cd288dfca4e32af12 /program
parent26fa646c8fd92d9e234e8d1ab50a1f3a58b6e493 (diff)
- handle <broadcast> tag in html messages (#1485962)
Diffstat (limited to 'program')
-rw-r--r--program/steps/mail/func.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 8b2f196ad..004f80d7e 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -677,6 +677,7 @@ function rcmail_wash_html($html, $p = array(), $cid_replaces)
'/(<\/nobr>)(\s+)(<nobr>)/i', // space(s) between <NOBR>
'/(<[\/]*st1:[^>]+>)/i', // Microsoft's Smart Tags <ST1>
'/<\/?rte_text>/i', // Rich Text Editor tags (#1485647)
+ '/<\/?broadcast[^>]*>/i', // invoices from the Apple Store contains <broadcast> tags (#1485962)
'/<title>.*<\/title>/i', // PHP bug #32547 workaround: remove title tag
'/<html[^>]*>/im', // malformed html: remove html tags (#1485139)
'/<\/html>/i', // malformed html: remove html tags (#1485139)
@@ -690,6 +691,7 @@ function rcmail_wash_html($html, $p = array(), $cid_replaces)
'',
'',
'',
+ '',
);
$html = preg_replace($html_search, $html_replace, $html);