forgejo/modules/context
zeripath 6e7d28cf3a
Prevent double decoding of % in url params (#17997)
There was an unfortunate regression in #14293 which has led to the double decoding
of url parameter elements if they contain a '%'. This is due to an issue
with the way chi decodes its RoutePath. In detail the problem lies in
mux.go where the routeHTTP path uses the URL.RawPath or even the
URL.Path instead of the escaped path to do routing.

This PR simply forcibly sets the routePath to that of the EscapedPath.

Fix #17938

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-12-16 17:40:18 +00:00
..
access_log.go
api.go
api_org.go
api_test.go
auth.go
captcha.go
context.go
csrf.go
form.go
org.go
pagination.go [Feature] add precise search type for Elastic Search (#12869) 2021-01-27 12:00:35 +02:00
permission.go
private.go
repo.go
response.go
xsrf.go
xsrf_test.go