Skip to content

Commit 87c2dd2

Browse files
author
Dmytro Vyshnevskyi
committed
fix sorting
1 parent cd16cff commit 87c2dd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core/src/Signer/SignerV4.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ private function buildCanonicalQuery(Request $request): string
321321
return '';
322322
}
323323

324-
ksort($query);
324+
uksort($query, static fn($a, $b) => strcmp(rawurlencode($a), rawurlencode($b)));
325325
$encodedQuery = [];
326326
foreach ($query as $key => $values) {
327327
if (!\is_array($values)) {

0 commit comments

Comments
 (0)