From c1b81f578ab1b75b9a313f1dac3ae05ded5fab77 Mon Sep 17 00:00:00 2001 From: alecpl Date: Tue, 22 Jul 2008 09:52:29 +0000 Subject: PHP bug #32547 workaround: remove tag because of libxml2 library problem (#1485178) --- program/steps/mail/func.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'program/steps') diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index f4282370c..7a986c16b 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -563,7 +563,10 @@ function rcmail_print_body($part, $p = array()) $html = '<head></head>' . $html; $html = substr_replace($html, '<meta http-equiv="Content-Type" content="text/html; charset='.RCMAIL_CHARSET.'" />', intval(stripos($html, '</head>')), 0); } - + + // PHP bug #32547 workaround: remove title tag + $html = preg_replace('/<title>.*<\/title>/', '', $html); + // clean HTML with washhtml by Frederic Motte $wash_opts = array( 'show_washed' => false, -- cgit v1.2.3