Skip to content

Commit 17ec5f5

Browse files
committed
Turn SSL verify peer off
https over CURL Won't work locally otherwise
1 parent 56511b6 commit 17ec5f5

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
$icvInfo = explode("\n",file_get_contents($icv_url,false,$context));
1616
} elseif (function_exists('curl_init')) {
1717
$ch = curl_init($icv_url);
18+
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
1819
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
1920
$icvInfo = explode("\n", curl_exec($ch));
2021
}

lib/plugins-manager.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
$pluginsDataJS = file_get_contents($pluginsDataSrc, false, $context);
1111
} elseif (function_exists('curl_init')) {
1212
$pDSrc = curl_init($pluginsDataSrc);
13+
curl_setopt($pDSrc, CURLOPT_SSL_VERIFYPEER, false);
1314
curl_setopt($pDSrc, CURLOPT_RETURNTRANSFER, true);
1415
$pluginsDataJS = curl_exec($pDSrc);
1516
}

lib/updater.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ function copyOldVersion() {
5454
$icvInfo = file_get_contents($icv_url,false,$context);
5555
} elseif (function_exists('curl_init')) {
5656
$ch = curl_init($icv_url);
57+
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
5758
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
5859
$icvInfo = curl_exec($ch);
5960
} else {

0 commit comments

Comments
 (0)