mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-31 07:13:02 +00:00 
			
		
		
		
	Removed xss on shelf add/remove action
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ozzie Isaacs
					Ozzie Isaacs