Merge pull request #1 from brun0ne/test-xss

different fix which does not break any tests
This commit is contained in:
Brunon Blok 2023-04-07 14:50:50 +02:00 committed by GitHub
commit 6b01cf0c1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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);