[-] CORE : do not verify ssl certificate when using CURL
This commit is contained in:
1 parent
6a89fc4b0f
commit
30e1ef8cc1
1 file changed
+1
@@ -1288,6 +1288,7 @@ class ToolsCore
|
|||||||
curl_setopt($curl, CURLOPT_URL, $url);
|
curl_setopt($curl, CURLOPT_URL, $url);
|
||||||
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, $curl_timeout);
|
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, $curl_timeout);
|
||||||
curl_setopt($curl, CURLOPT_TIMEOUT, $curl_timeout);
|
curl_setopt($curl, CURLOPT_TIMEOUT, $curl_timeout);
|
||||||
|
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
|
||||||
$opts = stream_context_get_options($stream_context);
|
$opts = stream_context_get_options($stream_context);
|
||||||
if (isset($opts['http']['method']) && Tools::strtolower($opts['http']['method']) == 'post')
|
if (isset($opts['http']['method']) && Tools::strtolower($opts['http']['method']) == 'post')
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user