diff --git a/bin/wappalyzer-validate-icons b/bin/wappalyzer-validate-icons index 847d1d29c..e840ec5fd 100755 --- a/bin/wappalyzer-validate-icons +++ b/bin/wappalyzer-validate-icons @@ -9,19 +9,21 @@ var json = require(process.env.WAPPALYZER_ROOT + '/src/apps.json'); for ( app in json.apps ) { - var path = process.env.WAPPALYZER_ROOT + '/src/icons/' + app + '.png'; + (function(app) { + var path = process.env.WAPPALYZER_ROOT + '/src/icons/' + app + '.png'; - fs.exists(path, function(exists) { - var buffer; + fs.exists(path, function(exists) { + var buffer; - if ( exists ) { - buffer = fileType(readChunk.sync(path, 0, 262)); + if ( exists ) { + buffer = fileType(readChunk.sync(path, 0, 262)); - if ( buffer.mime !== 'image/png' ) { - throw new Error('Incorrect mimetype "' + buffer.mime + '": src/icons/' + app + '.png'); + if ( buffer.mime !== 'image/png' ) { + throw new Error('Incorrect mimetype "' + buffer.mime + '": src/icons/' + app + '.png'); + } + } else { + throw new Error('Missing file: src/icons/' + app + '.png'); } - } else { - throw new Error('Missing file: src/icons/' + app + '.png'); - } - }); + }); + }(app)); }; diff --git a/src/apps.json b/src/apps.json index f76da82af..a0d35f3b2 100755 --- a/src/apps.json +++ b/src/apps.json @@ -3284,7 +3284,7 @@ }, "html": [ "]+>Powered by MODx", - "<(?:link|script)[^>]+assets/(?:templates|components|snippets)/\\;confidence:80" + "<(?:link|script)[^>]+assets/snippets/\\;confidence:20" ], "implies": "PHP", "website": "modxcms.com" @@ -3386,6 +3386,14 @@ "html": "(?: