summaryrefslogtreecommitdiff
path: root/lib/twitteroauthclient.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-08-28 04:36:47 +0000
committerZach Copley <zach@controlyourself.ca>2009-08-28 04:36:47 +0000
commit51adf00bd80253322b473ab199e5b97dd4951d5c (patch)
treeff1563c623bc10e705e4f6bacd1ce88c2c6c21fd /lib/twitteroauthclient.php
parentbbb830e14c718c687f0636710a1827c90b11f4cc (diff)
Renable basic auth posting to Twitter for users who already have a bridge setup
Diffstat (limited to 'lib/twitteroauthclient.php')
-rw-r--r--lib/twitteroauthclient.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/twitteroauthclient.php b/lib/twitteroauthclient.php
index 3da522fc5..9821a491e 100644
--- a/lib/twitteroauthclient.php
+++ b/lib/twitteroauthclient.php
@@ -81,6 +81,15 @@ class TwitterOAuthClient extends OAuthClient
return new OAuthToken($vals[0], $vals[1]);
}
+ static function isPackedToken($str)
+ {
+ if (strpos($str, chr(0)) === false) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+
/**
* Builds a link to Twitter's endpoint for authorizing a request token
*