Skip to content

Commit

Permalink
Merge pull request #25 from nerds-and-company/fix_generate_signature
Browse files Browse the repository at this point in the history
Fix generating signature by urldecoding value
  • Loading branch information
barryvdh authored May 30, 2017
2 parents a6d9146 + 59f8b54 commit b1d74b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Message/AbstractRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function generateSignature($data)
if (strcasecmp($key, 'Brq_signature') === 0) {
continue;
}
$str .= $key.'='.$value;
$str .= $key.'='.urldecode($value);
}

return sha1($str.$this->getSecretKey());
Expand Down

0 comments on commit b1d74b4

Please sign in to comment.