From 773a454303910627f7b74f81ca453cc6169849b3 Mon Sep 17 00:00:00 2001 From: Laurent Cherpit Date: Sat, 19 Apr 2014 14:16:39 +0200 Subject: [PATCH] Fix: Refactoring of "Excludes rules" processing Excludes rule should take care of detected apps only --- share/js/wappalyzer.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/share/js/wappalyzer.js b/share/js/wappalyzer.js index 99afbfe89..8e6d5bd42 100644 --- a/share/js/wappalyzer.js +++ b/share/js/wappalyzer.js @@ -387,8 +387,11 @@ var wappalyzer = (function() { if ( !apps[app].detected ) { delete apps[app]; } + } - if ( w.apps[app].excludes ) { + // Exclude app in detected apps only + for ( app in apps ) { + if (w.apps[app].excludes ) { if ( typeof w.apps[app].excludes === 'string' ) { w.apps[app].excludes = [ w.apps[app].excludes ]; }