From 560e4e7693e16af7e1f1f9f2abe2daac7bf6480c Mon Sep 17 00:00:00 2001 From: Elbert Alias Date: Sun, 18 Dec 2016 17:05:29 +1100 Subject: [PATCH] Correctly pass arguments in PhantomJS driver --- src/drivers/phantomjs/index.js | 4 ++-- src/drivers/phantomjs/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drivers/phantomjs/index.js b/src/drivers/phantomjs/index.js index 3b090b191..823a33fad 100644 --- a/src/drivers/phantomjs/index.js +++ b/src/drivers/phantomjs/index.js @@ -6,9 +6,9 @@ const phantomjs = require('phantomjs-prebuilt'); exports.run = function(args, callback) { - args.push.apply(['--web-security=no', '--load-images=false', '--ignore-ssl-errors=yes', '--ssl-protocol=any']); + args.unshift.apply(args, ['driver.js', '--web-security=false', '--load-images=false', '--ignore-ssl-errors=yes', '--ssl-protocol=any']); - var driver = phantomjs.exec('driver.js', args); + var driver = phantomjs.exec.apply(this, args); driver.stdout.on('data', (data) => { callback(`${data}`, null); diff --git a/src/drivers/phantomjs/package.json b/src/drivers/phantomjs/package.json index 990bcf4bf..d3201b69f 100644 --- a/src/drivers/phantomjs/package.json +++ b/src/drivers/phantomjs/package.json @@ -2,7 +2,7 @@ "name": "wappalyzer", "description": "Uncovers the technologies used on websites", "homepage": "https://github.com/AliasIO/Wappalyzer", - "version": "3.0.5", + "version": "3.0.6", "author": "Elbert Alias", "license": "GPL-3.0", "repository": {