Skip to content

Commit

Permalink
fixed an issue with the wrong type of parameter passed to http_build_…
Browse files Browse the repository at this point in the history
…query
  • Loading branch information
ericyzhu committed May 24, 2021
1 parent 59d360e commit 90abe0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/AliyunDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected function generateSign(array $params): string
{
ksort($params);
$accessKeySecret = $this->config->get('access_key_secret');
$stringToSign = 'GET&%2F&' . urlencode(http_build_query($params, null, '&', PHP_QUERY_RFC3986));
$stringToSign = 'GET&%2F&' . urlencode(http_build_query($params, '', '&', PHP_QUERY_RFC3986));

return base64_encode(hash_hmac('sha1', $stringToSign, $accessKeySecret . '&', true));
}
Expand Down

0 comments on commit 90abe0a

Please sign in to comment.