Merge pull request #2797 from modoboa/fix/xss_issue_with_tags

Fixed XSS vulnerability
This commit is contained in:
Antoine Nguyen
2023-02-22 08:50:08 +01:00
committed by GitHub
+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;