aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-15 10:19:44 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-15 10:19:44 +0800
commit873cba3e7cdecf33937e7bc28c966d81b8d97c78 (patch)
tree1d81f1e71daca18f8d06a36285c7d101e8986af0 /README.md
parenthttp_server.go: Redirect tree to tree/, same for raw (diff)
downloadforge-873cba3e7cdecf33937e7bc28c966d81b8d97c78.tar.gz
forge-873cba3e7cdecf33937e7bc28c966d81b8d97c78.tar.zst
forge-873cba3e7cdecf33937e7bc28c966d81b8d97c78.zip
{http_server,url}.go: Fix redirects
r.URL.Path contains URL segments already decoded which makes it impossible to distinguish from an encoded %2F and a path separator /. We introduce redirect_with_slash which checks it properly. There is still an occurence of r.URL.Path in the commit handler, but that's going to get a major revamp anyway so I'm not bothering to fix that for now. :/
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions