Commit ceffa3a1 authored by Ozzie Isaacs's avatar Ozzie Isaacs

Removed xss on shelf add/remove action

parent d8bad739
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment