mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-13 20:11:07 +02:00
add openssl version hack to fetch_file_contents()
This commit is contained in:
parent
60a1e7e795
commit
d86945c7ef
@ -349,6 +349,10 @@
|
|||||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_query);
|
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_query);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((OPENSSL_VERSION_NUMBER >= 0x0090808f) && (OPENSSL_VERSION_NUMBER < 0x10000000)) {
|
||||||
|
curl_setopt($curl, CURLOPT_SSLVERSION, 3);
|
||||||
|
}
|
||||||
|
|
||||||
if ($login && $pass)
|
if ($login && $pass)
|
||||||
curl_setopt($ch, CURLOPT_USERPWD, "$login:$pass");
|
curl_setopt($ch, CURLOPT_USERPWD, "$login:$pass");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user