Fixed XSS vulnerability

This commit is contained in:
Antoine Nguyen
2023-02-21 18:09:13 +01:00
parent 6c7a8d2052
commit 05b4a4f865
+2 -2
View File
@@ -255,9 +255,9 @@ Listing.prototype = {
make_tag: function(text, type) {
var $tag = $("<a />", {
"name": type, "class" : "btn btn-default btn-xs",
"html": " " + text
"html": " " + htmlEncode(text)
});
$("<span />", {"class" : "fa fa-remove"}).prependTo($tag);
$tag.click($.proxy(this.remove_tag, this));
return $tag;