Sanitize HTML tags in wiki page names (#33820).

git-svn-id: http://svn.redmine.org/redmine/trunk@20829 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2021-03-19 04:42:43 +00:00
parent bbfade9728
commit a18b8397ff

View File

@@ -1187,6 +1187,9 @@ function inlineAutoComplete(element) {
selectTemplate: function (wikiPage) { selectTemplate: function (wikiPage) {
return '[[' + wikiPage.original.value + ']]'; return '[[' + wikiPage.original.value + ']]';
}, },
menuItemTemplate: function (wikiPage) {
return sanitizeHTML(wikiPage.original.label);
},
noMatchTemplate: function () { noMatchTemplate: function () {
return '<span style:"visibility: hidden;"></span>'; return '<span style:"visibility: hidden;"></span>';
} }