caddy/modules/caddyhttp/rewrite
Rayan Salhab a4a38c3e88
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>
2026-05-11 17:16:33 -06:00
..
caddyfile.go chore: Dumb prealloc lint fix (#7430) 2026-01-13 14:13:43 -05:00
rewrite.go rewrite: escape file matcher paths before rewriting (#7683) 2026-05-11 17:16:33 -06:00
rewrite_test.go rewrite: skip query rename when source key is absent (#7599) 2026-03-28 13:10:34 -04:00