Skip to content

Commit 4ca4204

Browse files
authored
fix: curl request crashes with params that give an int once hexed. (#9198)
* fix: handle hex2bin() function input. * docs: add a comment out.
1 parent fcf37d6 commit 4ca4204

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

system/HTTP/URI.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,8 @@ protected function parseStr(string $query): array
11771177
parse_str($params, $result);
11781178

11791179
foreach ($result as $key => $value) {
1180-
$return[hex2bin($key)] = $value;
1180+
// Array key might be int
1181+
$return[hex2bin((string) $key)] = $value;
11811182
}
11821183

11831184
return $return;

0 commit comments

Comments
 (0)