mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
fix certificate problem in test
This commit is contained in:
parent
1f8554e8d1
commit
5d0088b1a7
@ -223,6 +223,8 @@ function quickShell()
|
|||||||
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2);
|
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2);
|
||||||
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
||||||
curl_setopt($ch, CURLOPT_MAXREDIRS, 10);
|
curl_setopt($ch, CURLOPT_MAXREDIRS, 10);
|
||||||
|
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||||
|
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
||||||
|
|
||||||
$response = curl_exec($ch);
|
$response = curl_exec($ch);
|
||||||
$responseCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
$responseCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||||
@ -541,6 +543,9 @@ if (is_ajax() === true) {
|
|||||||
// Maximum time to establish a connection.
|
// Maximum time to establish a connection.
|
||||||
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 1);
|
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 1);
|
||||||
|
|
||||||
|
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||||
|
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
||||||
|
|
||||||
curl_exec($ch);
|
curl_exec($ch);
|
||||||
$response_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
$response_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user