diff options
| author | tv <tv@krebsco.de> | 2026-11-22 11:41:01 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-22 11:41:01 +0000 |
| commit | 5d92f09978a2e7b5f40becb5215a28f2407f4bb4 (patch) | |
| tree | 5930cfd1010c83e3d259305a9e05ca13f5a4b3ce /base/kernel.nix | |
| parent | 5089201bd78c82687377a50ef33878d35407d23b (diff) | |
host: path rules match whole path segments
A path rule was a plain string prefix of the request's path, so
https://api.github.com/search/issues, meant for that API endpoint (with
whatever query), also allowed /search/issuesomethingelse, and the only
way around it, /search/issues/, didn't allow the endpoint itself. Now a
rule's path allows itself and the paths below it, /search/issues/...,
but not /search/issuesx; one ending in "/" still allows whatever starts
with it. The query was never part of the match, and still isn't. The
requests' checks and POST /check share the code now.
Diffstat (limited to 'base/kernel.nix')
0 files changed, 0 insertions, 0 deletions
