Removed xss on shelf add/remove action

pull/2204/head
Ozzie Isaacs 3 years ago
parent 86ef1d47e8
commit c0a06eec46

@ -69,7 +69,7 @@ $("#archived_cb").on("change", function() {
templates.remove({
add: this.href,
remove: $this.data("remove-href"),
content: this.textContent
content: $("<div>").text(this.textContent).html()
})
);
break;
@ -78,7 +78,7 @@ $("#archived_cb").on("change", function() {
templates.add({
add: $this.data("add-href"),
remove: this.href,
content: this.textContent
content: $("<div>").text(this.textContent).html(),
})
);
break;

Loading…
Cancel
Save