0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-21 17:54:01 +01:00
gitea/integrations/gitea-repositories-meta/user2/utf8.git/objects
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
..
1d Fix redirect with non-ascii branch names (#4764) (#4810) 2018-09-06 21:37:02 -04:00
3a Fix redirect with non-ascii branch names (#4764) (#4810) 2018-09-06 21:37:02 -04:00
4c Prevent double decoding of % in url params (#17997) 2021-12-16 17:40:18 +00:00
6d Fix redirect with non-ascii branch names (#4764) (#4810) 2018-09-06 21:37:02 -04:00
9b Prevent double decoding of % in url params (#17997) 2021-12-16 17:40:18 +00:00
14 Fix redirect with non-ascii branch names (#4764) (#4810) 2018-09-06 21:37:02 -04:00
28 Fix redirect with non-ascii branch names (#4764) (#4810) 2018-09-06 21:37:02 -04:00
50 Prevent double decoding of % in url params (#17997) 2021-12-16 17:40:18 +00:00
56 Fix redirect with non-ascii branch names (#4764) (#4810) 2018-09-06 21:37:02 -04:00
59 Prevent double decoding of % in url params (#17997) 2021-12-16 17:40:18 +00:00
64 Prevent double decoding of % in url params (#17997) 2021-12-16 17:40:18 +00:00
84 Prevent double decoding of % in url params (#17997) 2021-12-16 17:40:18 +00:00
a4 Prevent double decoding of % in url params (#17997) 2021-12-16 17:40:18 +00:00
a9 Fix redirect with non-ascii branch names (#4764) (#4810) 2018-09-06 21:37:02 -04:00
c7 Prevent double decoding of % in url params (#17997) 2021-12-16 17:40:18 +00:00
e9 Prevent double decoding of % in url params (#17997) 2021-12-16 17:40:18 +00:00
eb Fix redirect with non-ascii branch names (#4764) (#4810) 2018-09-06 21:37:02 -04:00
ee Fix redirect with non-ascii branch names (#4764) (#4810) 2018-09-06 21:37:02 -04:00
f4 Fix redirect with non-ascii branch names (#4764) (#4810) 2018-09-06 21:37:02 -04:00
info Fix redirect with non-ascii branch names (#4764) (#4810) 2018-09-06 21:37:02 -04:00