mirror of
https://github.com/caddyserver/caddy.git
synced 2026-11-20 14:59:36 +00:00
Use filepath.Rel rather than prefix trimming for both existing and fallback candidates. Preserve dotfiles and directory suffixes, and always expose a slash-prefixed path so rewrites and downstream path guards agree. Addresses scan report 3188624e-2157-49e6-b3e0-8c5049b72269. Code written by GitHub Copilot (GPT-6.1 Sol, Claude Opus 5.5); reviewed by mholt. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| testdata | ||
| browse.go | ||
| browse.html | ||
| browse_test.go | ||
| browsetplcontext.go | ||
| browsetplcontext_bench_test.go | ||
| browsetplcontext_test.go | ||
| caddyfile.go | ||
| command.go | ||
| matcher.go | ||
| matcher_root_test.go | ||
| matcher_test.go | ||
| staticfiles.go | ||
| staticfiles_hide_test.go | ||
| staticfiles_test.go | ||
| staticfiles_windows_test.go | ||