From 6958017ca9818bbd0340bea43fe77fbaef97ecc7 Mon Sep 17 00:00:00 2001 From: alec Date: Tue, 22 Jul 2008 09:52:29 +0000 Subject: PHP bug #32547 workaround: remove tag because of libxml2 library problem (#1485178) git-svn-id: https://svn.roundcube.net/trunk@1606 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/mail/func.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'roundcubemail/program/steps/mail/func.inc') diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index f4282370c..7a986c16b 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/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