Skip to content

Commit

Permalink
Merge pull request #1 from brun0ne/test-xss
Browse files Browse the repository at this point in the history
different fix which does not break any tests
  • Loading branch information
brun0ne committed Apr 7, 2023
2 parents e9ff870 + 30f9286 commit 6b01cf0
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.replace(">", "&gt;", "g").replace("<", "&lt;", "g");

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

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

Expand Down

0 comments on commit 6b01cf0

Please sign in to comment.