Update ApiOauthRequestTokenAction to support OAuth 1.0a

This commit is contained in:
Zach Copley
2010-10-05 17:53:50 -07:00
parent f4f56eea3a
commit f97b863fd7
2 changed files with 67 additions and 12 deletions

View File

@@ -77,6 +77,11 @@ class ApiOauthAction extends ApiAction
self::cleanRequest();
}
/*
* Clean up the request so the OAuth library doesn't find
* any extra parameters or anything else it's not expecting.
* I'm looking at you, p parameter.
*/
static function cleanRequest()
{
// kill evil effects of magical slashing