mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00: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:
parent
bbfade9728
commit
a18b8397ff
@ -1187,6 +1187,9 @@ function inlineAutoComplete(element) {
|
||||
selectTemplate: function (wikiPage) {
|
||||
return '[[' + wikiPage.original.value + ']]';
|
||||
},
|
||||
menuItemTemplate: function (wikiPage) {
|
||||
return sanitizeHTML(wikiPage.original.label);
|
||||
},
|
||||
noMatchTemplate: function () {
|
||||
return '<span style:"visibility: hidden;"></span>';
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user