Skip to content

Commit

Permalink
fix: curl request crashes with params that give an int once hexed. (#…
Browse files Browse the repository at this point in the history
…9198)

* fix: handle hex2bin() function input.

* docs: add a comment out.
  • Loading branch information
ping-yee authored Nov 15, 2024
1 parent fcf37d6 commit 4ca4204
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system/HTTP/URI.php
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,8 @@ protected function parseStr(string $query): array
parse_str($params, $result);

foreach ($result as $key => $value) {
$return[hex2bin($key)] = $value;
// Array key might be int
$return[hex2bin((string) $key)] = $value;
}

return $return;
Expand Down

0 comments on commit 4ca4204

Please sign in to comment.