From d86945c7ef4610cc8f34d8883fcdcb543ec2741c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 20 Jul 2013 23:30:40 +0400 Subject: [PATCH] add openssl version hack to fetch_file_contents() --- include/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/functions.php b/include/functions.php index 6312fa76..5e4d693c 100644 --- a/include/functions.php +++ b/include/functions.php @@ -349,6 +349,10 @@ 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) curl_setopt($ch, CURLOPT_USERPWD, "$login:$pass");