mirror of
https://github.com/gchq/CyberChef
synced 2025-01-04 00:38:41 +00:00
Merge pull request #1549 from brun0ne/fix-xss
Fixed xss in addOperation
This commit is contained in:
commit
75c4e196fa
1 changed files with 5 additions and 1 deletions
|
@ -396,7 +396,11 @@ class RecipeWaiter {
|
||||||
const item = document.createElement("li");
|
const item = document.createElement("li");
|
||||||
|
|
||||||
item.classList.add("operation");
|
item.classList.add("operation");
|
||||||
item.innerHTML = name;
|
|
||||||
|
if (this.app.operations[name] != null) {
|
||||||
|
item.innerHTML = name;
|
||||||
|
}
|
||||||
|
|
||||||
this.buildRecipeOperation(item);
|
this.buildRecipeOperation(item);
|
||||||
document.getElementById("rec-list").appendChild(item);
|
document.getElementById("rec-list").appendChild(item);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue