mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-19 05:58:34 +02:00
Merge pull request #2797 from modoboa/fix/xss_issue_with_tags
Fixed XSS vulnerability
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user