From c1b81f578ab1b75b9a313f1dac3ae05ded5fab77 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Tue, 22 Jul 2008 05:52:29 -0400
Subject: [PATCH] PHP bug #32547 workaround: remove <title> tag because of libxml2 library problem (#1485178)   

---
 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 f428237..7a986c1 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -563,7 +563,10 @@
         $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,

--
Gitblit v1.9.1