2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-05 23:53:27 +00:00

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

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