Skip to content

Commit

Permalink
Merge pull request #1549 from brun0ne/fix-xss
Browse files Browse the repository at this point in the history
Fixed xss in addOperation
  • Loading branch information
a3957273 committed Feb 4, 2024
2 parents fd77152 + 0359a2e commit 75c4e19
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/web/waiters/RecipeWaiter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,11 @@ class RecipeWaiter {
const item = document.createElement("li");

item.classList.add("operation");
item.innerHTML = name;

if (this.app.operations[name] != null) {
item.innerHTML = name;
}

this.buildRecipeOperation(item);
document.getElementById("rec-list").appendChild(item);

Expand Down

0 comments on commit 75c4e19

Please sign in to comment.