diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-08-28 07:03:32 +0000 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-08-28 07:03:32 +0000 |
commit | ca30cc2d594acabefeafa61edb61342b32752bc1 (patch) | |
tree | 8e843c7ecbaeb7c160495e18f7407acade4aa117 /lib/twitteroauthclient.php | |
parent | c0d03fc2799c7b0c57d05166b404a3d13427f497 (diff) | |
parent | 36c104fb34d7128a0372dd3f77504c0b2f76ba80 (diff) |
Merge branch 'twitter-basic-auth' into 0.8.x
Diffstat (limited to 'lib/twitteroauthclient.php')
-rw-r--r-- | lib/twitteroauthclient.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/twitteroauthclient.php b/lib/twitteroauthclient.php index 3da522fc5..e37fa05f0 100644 --- a/lib/twitteroauthclient.php +++ b/lib/twitteroauthclient.php @@ -22,7 +22,7 @@ * @category Integration * @package StatusNet * @author Zach Copley <zach@status.net> - * @copyright 2008 StatusNet, Inc. + * @copyright 2009 StatusNet, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ @@ -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 * |