summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-11-24 19:11:34 +0000
committerZach Copley <zach@status.net>2009-11-24 19:11:34 +0000
commitb20b59e9eaf8db1a5a2b26b697b03abfa98d0583 (patch)
tree7c1504250e2b528a8c17f2d151b2900321c6c8fe
parent2eae258319d5621065f9491ba4d81814c0f2b1fd (diff)
Fix SSL options for Twitter bridge HTTP requests
-rw-r--r--lib/oauthclient.php1
-rw-r--r--plugins/TwitterBridge/twitterbasicauthclient.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/oauthclient.php b/lib/oauthclient.php
index 1a86e2460..b22fd7897 100644
--- a/lib/oauthclient.php
+++ b/lib/oauthclient.php
@@ -197,6 +197,7 @@ class OAuthClient
'timeout' => 120,
'follow_redirects' => true,
'ssl_verify_peer' => false,
+ 'ssl_verify_host' => false
));
// Twitter is strict about accepting invalid "Expect" headers
diff --git a/plugins/TwitterBridge/twitterbasicauthclient.php b/plugins/TwitterBridge/twitterbasicauthclient.php
index d1cf45aec..7ee8d7d4c 100644
--- a/plugins/TwitterBridge/twitterbasicauthclient.php
+++ b/plugins/TwitterBridge/twitterbasicauthclient.php
@@ -183,7 +183,8 @@ class TwitterBasicAuthClient
'follow_redirects' => true,
'connect_timeout' => 120,
'timeout' => 120,
- 'ssl_verifypeer' => false,
+ 'ssl_verify_peer' => false,
+ 'ssl_verify_host' => false
));
if ($auth) {