Permalink
Browse files

# [#24628] htmlspecialchars() and multiple menu modules of the same

menu. Thanks Rouven
  • Loading branch information...
1 parent 6111a8f commit 35ee9be7867091419580897ab795fdbfca1540fe @infograf768 infograf768 committed Sep 4, 2012
Showing with 7 additions and 4 deletions.
  1. +3 −0 installation/CHANGELOG
  2. +4 −4 modules/mod_menu/helper.php
@@ -26,6 +26,9 @@ $ -> Language fix or change
- -> Removed
! -> Note
+04-Sept-2012 Jean-Marie Simonet
+ # [#24628] htmlspecialchars() and multiple menu modules of the same menu. Thanks Rouven
+
01-Sept-2012 Jean-Marie Simonet
# [#27933] Smart Search module does not read static filter setting from module parameters. Thanks Chris
# [#28405] Smart Search - CLI Indexer doesn't catch exceptions. Thanks Michael
@@ -114,10 +114,10 @@ static function getList(&$params)
$item->flink = JRoute::_($item->flink);
}
- $item->title = htmlspecialchars($item->title);
- $item->anchor_css = htmlspecialchars($item->params->get('menu-anchor_css', ''));
- $item->anchor_title = htmlspecialchars($item->params->get('menu-anchor_title', ''));
- $item->menu_image = $item->params->get('menu_image', '') ? htmlspecialchars($item->params->get('menu_image', '')) : '';
+ $item->title = htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8', false);
+ $item->anchor_css = htmlspecialchars($item->params->get('menu-anchor_css', ''), ENT_COMPAT, 'UTF-8', false);
+ $item->anchor_title = htmlspecialchars($item->params->get('menu-anchor_title', ''), ENT_COMPAT, 'UTF-8', false);
+ $item->menu_image = $item->params->get('menu_image', '') ? htmlspecialchars($item->params->get('menu_image', ''), ENT_COMPAT, 'UTF-8', false) : '';
}
if (isset($items[$lastitem])) {

0 comments on commit 35ee9be

Please sign in to comment.