Skip to content
Snippets Groups Projects
Commit b9a7eda0 authored by diamondsea's avatar diamondsea Committed by MegaChriz
Browse files

Issue #2644868 by diamondsea: Skip verification of the certificate's name when...

Issue #2644868 by diamondsea: Skip verification of the certificate's name when accepting invalid SSL certificates.
parent b0c868c0
No related branches found
No related tags found
No related merge requests found
...@@ -196,6 +196,7 @@ function http_request_get($url, $username = NULL, $password = NULL, $accept_inva ...@@ -196,6 +196,7 @@ function http_request_get($url, $username = NULL, $password = NULL, $accept_inva
if ($accept_invalid_cert) { if ($accept_invalid_cert) {
curl_setopt($download, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($download, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($download, CURLOPT_SSL_VERIFYHOST, 0);
} }
$header = ''; $header = '';
$data = curl_exec($download); $data = curl_exec($download);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment