Removed xss on shelf add/remove action
This commit is contained in:
parent
86ef1d47e8
commit
c0a06eec46
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ $("#archived_cb").on("change", function() {
|
||||||
templates.remove({
|
templates.remove({
|
||||||
add: this.href,
|
add: this.href,
|
||||||
remove: $this.data("remove-href"),
|
remove: $this.data("remove-href"),
|
||||||
content: this.textContent
|
content: $("<div>").text(this.textContent).html()
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
@ -78,7 +78,7 @@ $("#archived_cb").on("change", function() {
|
||||||
templates.add({
|
templates.add({
|
||||||
add: $this.data("add-href"),
|
add: $this.data("add-href"),
|
||||||
remove: this.href,
|
remove: this.href,
|
||||||
content: this.textContent
|
content: $("<div>").text(this.textContent).html(),
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue