From 94175a472551fd5c000b5ab8885c9a54f709da4d Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Sun, 10 Dec 2017 21:20:29 +0200 Subject: [PATCH] Resolve gh-181 to insure all urls added to xml is converting special characters with htmlspecialchars. --- admin/helpers/compiler/e_Interpretation.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin/helpers/compiler/e_Interpretation.php b/admin/helpers/compiler/e_Interpretation.php index c198dc7dc..b441d1e00 100644 --- a/admin/helpers/compiler/e_Interpretation.php +++ b/admin/helpers/compiler/e_Interpretation.php @@ -12629,6 +12629,8 @@ class Interpretation extends Fields $nameList = ComponentbuilderHelper::safeString($menu['name']); $nameUpper = ComponentbuilderHelper::safeString($menu['name'], 'U'); $this->langContent['adminsys'][$lang.'_'.$nameUpper] = $menu['name']; + // urlencode + $menu['link'] = htmlspecialchars($menu['link'], ENT_XML1, 'UTF-8'); // add custom menu $customMenu .= PHP_EOL."\t\t\t".''.$lang.'_'.$nameUpper.''; } @@ -12648,6 +12650,8 @@ class Interpretation extends Fields $nameList = ComponentbuilderHelper::safeString($menu['name']); $nameUpper = ComponentbuilderHelper::safeString($menu['name'], 'U'); $this->langContent['adminsys'][$lang.'_'.$nameUpper] = $menu['name']; + // urlencode + $menu['link'] = htmlspecialchars($menu['link'], ENT_XML1, 'UTF-8'); // add custom menu $this->lastCustomMainMenu[$nr] = PHP_EOL."\t\t\t".''.$lang.'_'.$nameUpper.''; }