mirror of
https://github.com/redmine/redmine.git
synced 2025-11-11 07:46:02 +01:00
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:
@@ -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>';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user