Skip to content

Commit

Permalink
Fixed XSS vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
tonioo committed Feb 21, 2023
1 parent 6c7a8d2 commit 05b4a4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modoboa/static/js/listing.js
Expand Up @@ -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;
Expand Down

0 comments on commit 05b4a4f

Please sign in to comment.