Просмотр исходного кода

BUGFIX #24: Invalid favourites loaded from localStorage are now escaped when reported to the user.

n1474335 8 лет назад
Родитель
Сommit
8b0112229e
5 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      Gruntfile.js
  2. 0 0
      build/prod/cyberchef.htm
  3. 0 0
      build/prod/index.html
  4. 0 0
      build/prod/scripts.js
  5. 2 2
      src/js/views/html/HTMLApp.js

+ 2 - 2
Gruntfile.js

@@ -431,7 +431,7 @@ module.exports = function(grunt) {
             },
             js: {
                 files: "src/js/**/*.js",
-                tasks: ["concat:js_all", "chmod:build"]
+                tasks: ["concat:js", "chmod:build"]
             },
             html: {
                 files: "src/html/**/*.html",
@@ -443,7 +443,7 @@ module.exports = function(grunt) {
             },
             grunt: {
                 files: "Gruntfile.js",
-                tasks: ["clean:dev", "concat:css", "concat:js_all", "copy:html_dev", "copy:static_dev", "chmod:build"]
+                tasks: ["clean:dev", "concat:css", "concat:js", "copy:html_dev", "copy:static_dev", "chmod:build"]
             }
         },
     });

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
build/prod/cyberchef.htm


Разница между файлами не показана из-за своего большого размера
+ 0 - 0
build/prod/index.html


Разница между файлами не показана из-за своего большого размера
+ 0 - 0
build/prod/scripts.js


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

@@ -279,8 +279,8 @@ HTMLApp.prototype.valid_favourites = function(favourites) {
         if (this.operations.hasOwnProperty(favourites[i])) {
             valid_favs.push(favourites[i]);
         } else {
-            this.alert("The operation \"" + favourites[i] + "\" is no longer " +
-                "available. It has been removed from your favourites.", "info");
+            this.alert("The operation \"" + Utils.escape_html(favourites[i]) +
+                "\" is no longer available. It has been removed from your favourites.", "info");
         }
     }
     return valid_favs;

Некоторые файлы не были показаны из-за большого количества измененных файлов