From bbbfeb923fcb7dbf9d717b9b20845790628c2de1 Mon Sep 17 00:00:00 2001 From: e107steved Date: Sat, 22 Sep 2007 12:07:46 +0000 Subject: [PATCH] Bugtracker #2520 - handle back and forward slashes in PDF plugin --- e107_plugins/pdf/e107pdf.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_plugins/pdf/e107pdf.php b/e107_plugins/pdf/e107pdf.php index 7fa5c1d93..c529037d4 100644 --- a/e107_plugins/pdf/e107pdf.php +++ b/e107_plugins/pdf/e107pdf.php @@ -232,8 +232,8 @@ class e107PDF extends UFPDF{ global $tp; global $admin_log; - $search = array("\n", "
", "
", '»', 'º', '·', '™', '©', '€', '[', '[', ' ', '‘', '’', ' />', '(', ')', '{', '}', '[', ']'); - $replace = array(" ", "
", "
", '»', 'º', '·', '™', '©', '', '[', '[', ' ', "'", "'", '>', '(', ')', '{', '}', '[',']' ); + $search = array("\n", "
", "
", '»', 'º', '·', '™', '©', '€', '[', '[', ' ', '‘', '’', ' />', '(', ')', '{', '}', '[', ']', '\', '\'); + $replace = array(" ", "
", "
", '»', 'º', '·', '™', '©', '', '[', '[', ' ', "'", "'", '>', '(', ')', '{', '}', '[',']', '\\\\', '\\\\' ); //replace carriage returns by spaces, and some html variants $html=str_replace($search, $replace, $html); $a=preg_split('/<(.*)>/U',$html,-1,PREG_SPLIT_DELIM_CAPTURE); //explodes the string