From ae04b798f13aee9f94a30b6e1dc2dd7e06003f37 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Sun, 18 Feb 2007 01:17:25 +0000 Subject: [PATCH] Bug #3755 - Use of " & " wasn't validating. Added a search/replace with spaces either side to avoid problems with entities. --- e107_handlers/e_parse_class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index f798793be..e649e7961 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/e_parse_class.php,v $ -| $Revision: 1.5 $ -| $Date: 2007-01-20 16:12:51 $ -| $Author: mrpete $ +| $Revision: 1.6 $ +| $Date: 2007-02-18 01:17:25 $ +| $Author: e107coders $ +----------------------------------------------------------------------------+ */ if (!defined('e107_INIT')) { exit; } @@ -26,8 +26,8 @@ class e_parse var $e_pf; var $e_emote; var $e_hook; - var $search = array(''', ''', '"', 'onerror', '>', ''', '"'); - var $replace = array("'", "'", '"', 'onerror', '>', "'", '"'); + var $search = array(''', ''', '"', 'onerror', '>', ''', '"', ' & '); + var $replace = array("'", "'", '"', 'onerror', '>', "'", '"', ' & '); var $e_highlighting; // Set to TRUE or FALSE once it has been calculated var $e_query; // Highlight query