Resolve gh-181 to insure all urls added to xml is converting special characters with htmlspecialchars.

This commit is contained in:
Llewellyn van der Merwe 2017-12-10 21:20:29 +02:00
parent f900f65baa
commit 94175a4725
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5

View File

@ -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".'<menu link="'.$menu['link'].'">'.$lang.'_'.$nameUpper.'</menu>';
}
@ -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".'<menu link="'.$menu['link'].'">'.$lang.'_'.$nameUpper.'</menu>';
}