2 Commits
1.0.8 ... 1.0.9

Author SHA1 Message Date
b3d4f9b6bc Added CONTRIBUTORS.md file.
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2013-06-06 05:58:53 +02:00
Alexandru G
087cb1278f Because $token refs an object, this statement will always be true. Therefore an empty oauth_token param will be added to each request, wich will break Bitbucket authorization process.
To fix this, we need to check if token key is empty and ignore it.
2013-06-06 05:58:53 +02:00
2 changed files with 10 additions and 1 deletions

9
CONTRIBUTORS.md Normal file
View File

@@ -0,0 +1,9 @@
This project has had multiple authors. In this file, I will try to credit
each of them. If you are not listed for some reason, please ask.
Andy Smith authored the original code (http://oauth.googlecode.com/svn/code/php/).
* Alexandre Eher (@EHER)
* Gary Jones (@GaryJones)
* Jacob Kiers (@jacobkiers)
* Alexandru G. (@vimishor)

View File

@@ -157,7 +157,7 @@ public static function fromConsumerAndToken(
'oauth_nonce' => Request::generateNonce(),
'oauth_timestamp' => Request::generateTimestamp(),
'oauth_consumer_key' => $consumer->getKey());
if ($token) {
if ($token->getKey()) {
$defaults['oauth_token'] = $token->getKey();
}