Skip to content

Commit

Permalink
Fix SSL version since Reddit has disabled SSLv3
Browse files Browse the repository at this point in the history
  • Loading branch information
deadfish2000 committed Oct 17, 2014
1 parent 469b518 commit 2c2eac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reddit.php
Expand Up @@ -678,7 +678,7 @@ private function runCurl($url, $postVals = null, $headers = null, $auth = false)
if ($auth){
$options[CURLOPT_HTTPAUTH] = CURLAUTH_BASIC;
$options[CURLOPT_USERPWD] = redditConfig::$CLIENT_ID . ":" . redditConfig::$CLIENT_SECRET;
$options[CURLOPT_SSLVERSION] = 3;
$options[CURLOPT_SSLVERSION] = 4;
$options[CURLOPT_SSL_VERIFYPEER] = false;
$options[CURLOPT_SSL_VERIFYHOST] = 2;
}
Expand Down

0 comments on commit 2c2eac7

Please sign in to comment.