From e28c92d526f2d5ae1526599eb32def9d5b799a4a Mon Sep 17 00:00:00 2001 From: Benjamin Dean Date: Mon, 6 Apr 2015 10:44:44 +0300 Subject: [PATCH] Fixing CURLOPT_SSL_VERIFYHOST value This commit is fixing "CURLOPT_SSL_VERIFYHOST no longer accepts the value 1, value 2 will be used instead" notice spam. There is also some warnings about CURLOPT_CLOSEPOLICY, but this one, I guess, needs to be reviewed. --- .../phpthumbof/model/aws/lib/requestcore/requestcore.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/components/phpthumbof/model/aws/lib/requestcore/requestcore.class.php b/core/components/phpthumbof/model/aws/lib/requestcore/requestcore.class.php index 1d0b09c..c8b0794 100644 --- a/core/components/phpthumbof/model/aws/lib/requestcore/requestcore.class.php +++ b/core/components/phpthumbof/model/aws/lib/requestcore/requestcore.class.php @@ -474,7 +474,7 @@ public function prep_request() curl_setopt($curl_handle, CURLOPT_FILETIME, true); curl_setopt($curl_handle, CURLOPT_FRESH_CONNECT, false); curl_setopt($curl_handle, CURLOPT_SSL_VERIFYPEER, false); - curl_setopt($curl_handle, CURLOPT_SSL_VERIFYHOST, true); + curl_setopt($curl_handle, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($curl_handle, CURLOPT_CLOSEPOLICY, CURLCLOSEPOLICY_LEAST_RECENTLY_USED); $safeMode = @ini_get('safe_mode'); $openBasedir = @ini_get('open_basedir');