Переглянути джерело

Merge remote-tracking branch 'upstream/master' into feature_xpath

Mike Schwörer 8 роки тому
батько
коміт
da7a832ceb

+ 8 - 1
Gruntfile.js

@@ -356,9 +356,16 @@ module.exports = function(grunt) {
                     css: "type='text/css'"
                 }
             },
-            prod: {
+            compiled: {
                 src: "build/prod/cyberchef.htm",
                 dest: "build/prod/cyberchef.htm"
+            },
+            prod: {
+                options: {
+                    tag: "__inline"
+                },
+                src: "build/prod/index.html",
+                dest: "build/prod/index.html"
             }
         },
         chmod: {

Різницю між файлами не показано, бо вона завелика
+ 0 - 0
build/prod/cyberchef.htm


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
build/prod/index.html


Різницю між файлами не показано, бо вона завелика
+ 0 - 0
build/prod/scripts.js


+ 1 - 1
src/html/index.html

@@ -29,7 +29,7 @@
         <meta name="description" content="The Cyber Swiss Army Knife" />
         <meta name="keywords" content="base64, hex, decode, encode, encrypt, decrypt, compress, decompress, regex, regular expressions, hash, crypt, hexadecimal, user agent, url, certificate, x.509, parser, JSON, gzip,  md5, sha1, aes, des, blowfish, xor" />
 
-        <link rel="icon" type="image/png" href="images/favicon.ico" />
+        <link rel="icon" type="image/png" href="images/favicon.ico?__inline" />
         <link href="styles.css" rel="stylesheet" />
     </head>
     <body>

+ 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")) {
                 // toggle_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>";
             } else {
                 // all others

+ 3 - 3
src/static/stats.txt

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

Деякі файли не було показано, через те що забагато файлів було змінено