0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-27 00:14:17 +01:00
gitea/integrations/gitea-repositories-meta/user2/utf8.git/objects/50
zeripath 6e7d28cf3a
Prevent double decoding of % in url params ()
There was an unfortunate regression in  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 

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-12-16 17:40:18 +00:00
..
4d9fe743979d4e9785a25a363c7007293f0838 Prevent double decoding of % in url params () 2021-12-16 17:40:18 +00:00