From 2065d5054b6319d242641555bb7622e0d43407a4 Mon Sep 17 00:00:00 2001 From: kevNii Date: Thu, 3 May 2018 00:12:53 +0200 Subject: [PATCH] fix meta detection (#2277) --- src/wappalyzer.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wappalyzer.js b/src/wappalyzer.js index 1a4e1137b..843976ee3 100644 --- a/src/wappalyzer.js +++ b/src/wappalyzer.js @@ -470,7 +470,6 @@ class Wappalyzer { const patterns = this.parsePatterns(app.props.meta); const promises = []; - var content = ''; var matches = []; while ( patterns && ( matches = regex.exec(html) ) ) { @@ -478,7 +477,7 @@ class Wappalyzer { const r = new RegExp('(?:name|property)=["\']' + meta + '["\']', 'i'); if ( r.test(matches[0]) ) { - content = matches[0].match(/content=("|')([^"']+)("|')/i); + let content = matches[0].match(/content=("|')([^"']+)("|')/i); promises.push(this.asyncForEach(patterns[meta], pattern => { if ( content && content.length === 4 && pattern.regex.test(content[2]) ) {