Skip to content
Snippets Groups Projects
Commit 2e2f1dc4 authored by Marius Burkard's avatar Marius Burkard
Browse files

- fixed XSS vulnerability in select2 usage

parent 1caeea6a
No related branches found
No related tags found
2 merge requests!700Ported XSS vulnerability fixes from stable branch,!699Fixed XSS vulnerabilities
......@@ -103,13 +103,13 @@ var ISPConfig = {
width: 'element',
selectOnBlur: true,
allowClear: true,
formatResult: function(o) {
if(o.id && $(o.element).parent().hasClass('flags')) return '<span class="flags flag-' + o.id.toLowerCase() + '">' + o.text + '</span>';
else return o.text;
formatResult: function(o, cont, qry, escapeMarkup) {
if(o.id && $(o.element).parent().hasClass('flags')) return '<span class="flags flag-' + o.id.toLowerCase() + '">' + escapeMarkup(o.text) + '</span>';
else return escapeMarkup(o.text);
},
formatSelection: function(o) {
if(o.id && $(o.element).parent().hasClass('flags')) return '<span class="flags flag-' + o.id.toLowerCase() + '">' + o.text + '</span>';
else return o.text;
formatSelection: function(o, cont, escapeMarkup) {
if(o.id && $(o.element).parent().hasClass('flags')) return '<span class="flags flag-' + o.id.toLowerCase() + '">' + escapeMarkup(o.text) + '</span>';
else return escapeMarkup(o.text);
}
}).on('change', function(e) {
if ($("#pageForm .table #Filter").length > 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment