SIGN IN SIGN UP
caddyserver / caddy UNCLAIMED

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

0 0 103 Go

rewrite: escape file matcher paths before rewriting (#7683)

* fix: escape file matcher paths in rewrites

Preserve matched file paths containing literal '?' or '%' when try_files rewrites to http.matchers.file.relative.

* test: cover nested escaped try_files rewrite paths

* test: cover encoded slash try_files rewrite paths

* fix: assert file matcher placeholder as string

---------

Co-authored-by: cyphercodes <cyphercodes@users.noreply.github.com>
R
Rayan Salhab committed
a4a38c3e88952a361c6e44c5dc3200bba1497e15
Parent: 761347a
Committed by GitHub <noreply@github.com> on 5/11/2026, 11:16:33 PM