X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2FParseUrl.php;h=e9ac527a1ad455fe8c9c29b8ba3ee1b987637b2c;hb=b42167f0ac5b76fc42e6da1ced2b001862417f5e;hp=3a2fe9d53c6b818b39613d7d4f769bd34691ab6e;hpb=432587464ce16dff513ed2de340fa3437dbe45aa;p=friendica.git diff --git a/include/ParseUrl.php b/include/ParseUrl.php index 3a2fe9d53c..e9ac527a1a 100644 --- a/include/ParseUrl.php +++ b/include/ParseUrl.php @@ -146,7 +146,9 @@ class ParseUrl { curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERAGENT, $a->get_useragent()); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, (($check_cert) ? true : false)); - curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, (($check_cert) ? 2 : false)); + if ($check_cert) { + @curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); + } $header = curl_exec($ch); $curl_info = @curl_getinfo($ch);