diff options
author | alecpl <alec@alec.pl> | 2008-07-22 09:52:29 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-07-22 09:52:29 +0000 |
commit | c1b81f578ab1b75b9a313f1dac3ae05ded5fab77 (patch) | |
tree | b6099a15388e002df6b81e6cf5002e9d41daa7ce | |
parent | 9103d1706d769c3924036443d3131c3a66ac6667 (diff) |
PHP bug #32547 workaround: remove <title> tag because of libxml2 library problem (#1485178)
-rw-r--r-- | program/steps/mail/func.inc | 5 |
1 files changed, 4 insertions, 1 deletions
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, |