From 17ec5f517c0433a69b701d10c075a190eb88dceb Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 26 Apr 2014 13:19:33 +0100 Subject: [PATCH] Turn SSL verify peer off https over CURL Won't work locally otherwise --- index.php | 1 + lib/plugins-manager.php | 1 + lib/updater.php | 1 + 3 files changed, 3 insertions(+) diff --git a/index.php b/index.php index 7e3de1c..df808c6 100644 --- a/index.php +++ b/index.php @@ -15,6 +15,7 @@ if ($ICEcoder["checkUpdates"]) { $icvInfo = explode("\n",file_get_contents($icv_url,false,$context)); } elseif (function_exists('curl_init')) { $ch = curl_init($icv_url); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $icvInfo = explode("\n", curl_exec($ch)); } diff --git a/lib/plugins-manager.php b/lib/plugins-manager.php index 629e652..0e4dca1 100644 --- a/lib/plugins-manager.php +++ b/lib/plugins-manager.php @@ -10,6 +10,7 @@ if (ini_get('allow_url_fopen')) { $pluginsDataJS = file_get_contents($pluginsDataSrc, false, $context); } elseif (function_exists('curl_init')) { $pDSrc = curl_init($pluginsDataSrc); + curl_setopt($pDSrc, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($pDSrc, CURLOPT_RETURNTRANSFER, true); $pluginsDataJS = curl_exec($pDSrc); } diff --git a/lib/updater.php b/lib/updater.php index 9003e91..655929a 100644 --- a/lib/updater.php +++ b/lib/updater.php @@ -54,6 +54,7 @@ function copyOldVersion() { $icvInfo = file_get_contents($icv_url,false,$context); } elseif (function_exists('curl_init')) { $ch = curl_init($icv_url); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $icvInfo = curl_exec($ch); } else {