From 74ceb69d114b09c2c8ccf05529641fd5fba28160 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Sun, 05 Jul 2009 05:31:18 -0400
Subject: [PATCH] - handle <broadcast> tag in html messages (#1485962)
---
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 8b2f196..004f80d 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -677,6 +677,7 @@
'/(<\/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 @@
'',
'',
'',
+ '',
);
$html = preg_replace($html_search, $html_replace, $html);
--
Gitblit v1.9.1