diff options
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/it_url.class b/it_url.class index 1a8d171..b760e0d 100644 --- a/it_url.class +++ b/it_url.class @@ -294,8 +294,8 @@ static function curl_opts($p=array()) CURLOPT_HTTPHEADER => $headers, CURLOPT_CAPATH => '/etc/ssl/certs/', - CURLOPT_SSL_VERIFYPEER => true, - CURLOPT_SSL_VERIFYHOST => 2, + CURLOPT_SSL_VERIFYPEER => !$p['allow_insecure_ssl'], + CURLOPT_SSL_VERIFYHOST => $p['allow_insecure_ssl'] ? 0 : 2, CURLINFO_HEADER_OUT => 1, ); |