From 845b0ee7dd1e90beea9af3d5660613fa19726c43 Mon Sep 17 00:00:00 2001 From: hackademix Date: Fri, 2 Aug 2019 18:03:49 +0200 Subject: [XSS] Enable InjectionChecker logging when debugging mode is on. --- src/xss/InjectionChecker.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/xss/InjectionChecker.js') diff --git a/src/xss/InjectionChecker.js b/src/xss/InjectionChecker.js index a536aaf..4f8a910 100644 --- a/src/xss/InjectionChecker.js +++ b/src/xss/InjectionChecker.js @@ -42,10 +42,10 @@ XSS.InjectionChecker = (async () => { fuzzify: fuzzify, syntax: new SyntaxChecker(), - _log: function(msg, i) { + _log: function(msg, iterations) { if (msg) msg = this._printable(msg); - if (t) msg += " - TIME: " + (this.timing.elapsed); - if (i) msg += " - ITER: " + i; + msg = `${msg} - TIME: ${this.timing.elapsed}`; + if (iterations) msg = `${msg} - ITER: ${iterations}`; debug("[InjectionChecker]", msg); }, @@ -1194,6 +1194,5 @@ XSS.InjectionChecker = (async () => { }, }; - // InjectionChecker.logEnabled = true; return InjectionChecker; })(); -- cgit v1.2.3