Turn SSL verify peer off

https over CURL Won't work locally otherwise
This commit is contained in:
Matt Pass
2014-04-26 13:19:33 +01:00
parent 56511b66bb
commit 17ec5f517c
3 changed files with 3 additions and 0 deletions

View File

@@ -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));
}

View File

@@ -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);
}

View File

@@ -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 {