Renable basic auth posting to Twitter for users who already have a bridge setup

This commit is contained in:
Zach Copley
2009-08-28 04:36:47 +00:00
parent bbb830e14c
commit 51adf00bd8
2 changed files with 153 additions and 56 deletions

View File

@@ -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
*