This website requires JavaScript.
Explore
Help
Sign In
aniani
/
gitea
Watch
1
Star
0
Fork
0
You've already forked gitea
mirror of
https://github.com/go-gitea/gitea.git
synced
2024-10-19 06:43:41 -04:00
Code
c8ded77680
gitea
/
tests
/
gitea-repositories-meta
/
user2
/
utf8.git
/
refs
/
heads
/
Plus+Is+Not+Space
2 lines
41 B
Plaintext
Raw
Normal View
History
Unescape
Escape
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 12:40:18 -05:00
59e2c41e8f5140bb0182acebec17c8ad9831cc62
Copy Permalink