From c58fb5c8b8f5b9fde536e2b6fb54b4aeb63231a3 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 4 Feb 2015 15:33:21 -0800 Subject: [PATCH] Fixes #719 - entity encoding on non-english characters. This change requires thorough testing of all e107 pages using URL queries. --- e107_handlers/e107_class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e107_handlers/e107_class.php b/e107_handlers/e107_class.php index f1ed7645c..b7df405bd 100644 --- a/e107_handlers/e107_class.php +++ b/e107_handlers/e107_class.php @@ -3359,7 +3359,9 @@ class e107 } if ($no_cbrace) $e_QUERY = str_replace(array('{', '}', '%7B', '%7b', '%7D', '%7d'), '', rawurldecode($e_QUERY)); - $e_QUERY = htmlentities(self::getParser()->post_toForm($e_QUERY)); + + // $e_QUERY = htmlentities(self::getParser()->post_toForm($e_QUERY)); //@see https://github.com/e107inc/e107/issues/719 + $e_QUERY = htmlspecialchars(self::getParser()->post_toForm($e_QUERY)); // e_QUERY SHOULD NOT BE DEFINED IF IN SNIGLE ENTRY MODE OR ALL URLS WILL BE BROKEN - it's defined later within the the router if(!deftrue("e_SINGLE_ENTRY"))