Skip to content

Commit

Permalink
Update OAuthSimple.php
Browse files Browse the repository at this point in the history
Take two of making signature base string generation according to RFC 5849 (http://tools.ietf.org/html/rfc5849)
  • Loading branch information
MarkoVcode committed Jan 10, 2015
1 parent a61a838 commit 8c85c50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/OAuthSimple.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,8 @@ private function _generateSignature ($parameters="")
{
$secretKey .= self::_oauthEscape($this->_secrets['oauth_secret']);
}
if(empty($parameters)){
$parameters = $this->_normalizedParameters();
if(!empty($parameters)){
$parameters = urlencode($parameters);
}
switch($this->_parameters['oauth_signature_method'])
{
Expand Down

0 comments on commit 8c85c50

Please sign in to comment.