1
0
mirror of synced 2024-11-30 17:34:27 +01:00

Merge pull request #1549 from brun0ne/fix-xss

Fixed xss in addOperation
This commit is contained in:
a3957273 2024-02-04 01:41:56 +00:00 committed by GitHub
commit 75c4e196fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -396,7 +396,11 @@ class RecipeWaiter {
const item = document.createElement("li"); const item = document.createElement("li");
item.classList.add("operation"); item.classList.add("operation");
if (this.app.operations[name] != null) {
item.innerHTML = name; item.innerHTML = name;
}
this.buildRecipeOperation(item); this.buildRecipeOperation(item);
document.getElementById("rec-list").appendChild(item); document.getElementById("rec-list").appendChild(item);