summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-07-22 09:52:29 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-07-22 09:52:29 +0000
commit6958017ca9818bbd0340bea43fe77fbaef97ecc7 (patch)
tree26d32d8225088a31a6d7d982f9edcfe963572bb0
parent2b31c2433e5111a32ed23d78a26e89768ccb1ac5 (diff)
PHP bug #32547 workaround: remove <title> tag because of libxml2 library problem (#1485178)
git-svn-id: https://svn.roundcube.net/trunk@1606 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/steps/mail/func.inc5
1 files changed, 4 insertions, 1 deletions
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,