From 7f9544a930d5b101cf1369c451079722ea42da4e Mon Sep 17 00:00:00 2001 From: jakoch Date: Tue, 9 Aug 2016 02:32:57 +0200 Subject: [PATCH] needle in haystack fix for strpos($mystring, $findme) ref. https://github.com/jakoch/phantomjs-installer/issues/34 --- src/PhantomInstaller/Installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhantomInstaller/Installer.php b/src/PhantomInstaller/Installer.php index 495e4fb..003a82d 100644 --- a/src/PhantomInstaller/Installer.php +++ b/src/PhantomInstaller/Installer.php @@ -463,7 +463,7 @@ public static function getCdnUrl($version) $url = strtolower($url); // add version to URL when using "github.com/medium/phantomjs" - if(strpos('github.com/medium/phantomjs', $url) !== false) { + if(strpos($url, 'github.com/medium/phantomjs') !== false) { return 'https://github.com/medium/phantomjs/releases/download/v'.$version.'/'; }