From 2eee7a5119b66ebcdc75faaa30a3971df4d6659b Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 9 Dec 2011 21:00:57 +0000 Subject: [PATCH] Fix missing >< when merging to XML, caused by double escaping --- etemplate/inc/class.bo_merge.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.bo_merge.inc.php b/etemplate/inc/class.bo_merge.inc.php index f585dd784b..df9fbf66cf 100644 --- a/etemplate/inc/class.bo_merge.inc.php +++ b/etemplate/inc/class.bo_merge.inc.php @@ -931,8 +931,8 @@ abstract class bo_merge break; } // now decode &, < and >, which need to be encoded as entities in xml - //$replacements = str_replace(array('&','<','>',"\r","\n"),array('&','<','>','',$break),$replacements); - $replacements = str_replace(array('&',"\r","\n"),array('&','',$break),$replacements); + // Check for encoded >< getting double-encoded + $replacements = str_replace(array('&',"\r","\n",'&lt;','&gt;'),array('&','',$break,'<','>'),$replacements); } return str_replace(array_keys($replacements),array_values($replacements),$content); }