mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-20 16:51:18 -08:00
This commit updates the path matching logic in getServeHandler for malformed
request targets like "*" (e.g. "GET *") and "" (e.g. "CONNECT" authority-form).
Those paths never reduce to "/" as absolute path would. An absolute path check
was added and an additional check on no further reduce was added in the loop.
Fixes tailscale/corp#44814
(cherry picked from commit b803ba048c)
Signed-off-by: kevinliang10 <[email protected]>
Signed-off-by: Patrick O'Doherty <[email protected]>
Co-authored-by: KevinLiang10 <[email protected]>