mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°6778 - Security hardening
This commit is contained in:
@@ -1250,12 +1250,13 @@ EOF
|
||||
'base/layouts/navigation-menu/menu-node'
|
||||
);
|
||||
|
||||
$MenuNameEscaped = utils::HtmlEntities($aValues['name']);
|
||||
// Important: Mind the back ticks to avoid line breaks to break the JS
|
||||
$oPage->add_script(<<<JS
|
||||
$('body').trigger('add_shortcut_node.navigation_menu.itop', {
|
||||
parent_menu_node_id: '{$sMenuGroupId}',
|
||||
new_menu_node_html_rendering: `{$sHtml}`,
|
||||
new_menu_name: `{$aValues['name']}`
|
||||
new_menu_name: `{$MenuNameEscaped}`
|
||||
});
|
||||
JS
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user