Browse Source

BUGFIX #24: toggle_string arguments are now escaped before being inserted into the DOM.

n1474335 8 years ago
parent
commit
2f0bc54046

File diff suppressed because it is too large
+ 0 - 0
build/prod/cyberchef.htm


File diff suppressed because it is too large
+ 0 - 0
build/prod/index.html


File diff suppressed because it is too large
+ 0 - 0
build/prod/scripts.js


+ 2 - 1
src/js/views/html/HTMLApp.js

@@ -436,7 +436,8 @@ HTMLApp.prototype.set_recipe_config = function(recipe_config) {
             } else if (args[j].classList.contains("toggle-string")) {
             } else if (args[j].classList.contains("toggle-string")) {
                 // toggle_string
                 // toggle_string
                 args[j].value = recipe_config[i].args[j].string;
                 args[j].value = recipe_config[i].args[j].string;
-                args[j].previousSibling.children[0].innerHTML = recipe_config[i].args[j].option +
+                args[j].previousSibling.children[0].innerHTML =
+                    Utils.escape_html(recipe_config[i].args[j].option) +
                     " <span class='caret'></span>";
                     " <span class='caret'></span>";
             } else {
             } else {
                 // all others
                 // all others

+ 3 - 3
src/static/stats.txt

@@ -1,9 +1,9 @@
 202	source files
 202	source files
-104190	lines
+104191	lines
 4.0M	size
 4.0M	size
 
 
 136	JavaScript source files
 136	JavaScript source files
-95118	lines
+95119	lines
 3.4M	size
 3.4M	size
 
 
 78	third party JavaScript source files
 78	third party JavaScript source files
@@ -11,7 +11,7 @@
 2.7M	size
 2.7M	size
 
 
 58	first party JavaScript source files
 58	first party JavaScript source files
-18741	lines
+18742	lines
 724K	size
 724K	size
 
 
 3.1M	uncompressed JavaScript size
 3.1M	uncompressed JavaScript size

Some files were not shown because too many files changed in this diff