diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-15 09:10:09 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-15 09:10:09 +0900 |
| commit | 8724f55749a97fe6a6e232d1dd900a069f9b7533 (patch) | |
| tree | 98068ab7f30a0c9e5e45fa3f5f2c73e8a1d7b91e /crates/shirabe/src/command/search_command.rs | |
| parent | b1f74fd83663d26e14f92300f452a3c997d93d62 (diff) | |
| download | php-shirabe-8724f55749a97fe6a6e232d1dd900a069f9b7533.tar.gz php-shirabe-8724f55749a97fe6a6e232d1dd900a069f9b7533.tar.zst php-shirabe-8724f55749a97fe6a6e232d1dd900a069f9b7533.zip | |
fix(composer-repository): encode the security advisory POST body as PHP does
`http_build_query(['packages' => array_keys($packageConstraintMap)])` maps a
single array value, so the body PHP sends is `packages%5B0%5D=a&packages%5B1%5D=b`.
The port flattened the array into repeated `packages=<name>` pairs, losing the
indices, and passed `"&"` as the numeric prefix and `"="` as the argument
separator, joining every pair with `=`.
Build the query from a `packages` key holding the name list and hand it to
`http_build_query_mixed`, which walks the nested value.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/command/search_command.rs')
0 files changed, 0 insertions, 0 deletions
