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:12:57 +0000
commit3556861596652b82e607db62c9c28ef379657779 (patch)
treeca302b271a644574518d0e1b6728ea3da49450be
parent9694e3e4cfd0bc9bf4cf04e575afb31a1e941e16 (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) {