Skip to content

Commit

Permalink
Update OAuthSimple.pm
Browse files Browse the repository at this point in the history
Making signature base string generation according to RFC 5849 (http://tools.ietf.org/html/rfc5849)
  • Loading branch information
MarkoVcode committed Jan 9, 2015
1 parent 341f064 commit a61a838
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions perl/OAuthSimple.pm
Original file line number Diff line number Diff line change
Expand Up @@ -617,8 +617,8 @@ see .sign()
if(defined($this->{_secrets}->{oauth_secret})) {
$secretKey .= $this->_oauthEscape($this->{_secrets}->{oauth_secret});
}
if (empty($normalizedParameters)) {
$normalizedParameters = $this->_normalizedParameters();
if (!empty($normalizedParameters)) {
$normalizedParameters = $this->_oauthEscape($normalizedParameters);
}
if ($this->{_parameters}->{oauth_signature_method} eq 'PLAINTEXT') {
return $secretKey;
Expand Down

0 comments on commit a61a838

Please sign in to comment.