You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
3 years ago
..
1d Fix redirect with non-ascii branch names (#4764) (#4810) 6 years ago
3a Fix redirect with non-ascii branch names (#4764) (#4810) 6 years ago
4c Prevent double decoding of % in url params (#17997) 3 years ago
6d Fix redirect with non-ascii branch names (#4764) (#4810) 6 years ago
9b Prevent double decoding of % in url params (#17997) 3 years ago
14 Fix redirect with non-ascii branch names (#4764) (#4810) 6 years ago
28 Fix redirect with non-ascii branch names (#4764) (#4810) 6 years ago
50 Prevent double decoding of % in url params (#17997) 3 years ago
56 Fix redirect with non-ascii branch names (#4764) (#4810) 6 years ago
59 Prevent double decoding of % in url params (#17997) 3 years ago
64 Prevent double decoding of % in url params (#17997) 3 years ago
84 Prevent double decoding of % in url params (#17997) 3 years ago
a4 Prevent double decoding of % in url params (#17997) 3 years ago
a9 Fix redirect with non-ascii branch names (#4764) (#4810) 6 years ago
c7 Prevent double decoding of % in url params (#17997) 3 years ago
e9 Prevent double decoding of % in url params (#17997) 3 years ago
eb Fix redirect with non-ascii branch names (#4764) (#4810) 6 years ago
ee Fix redirect with non-ascii branch names (#4764) (#4810) 6 years ago
f4 Fix redirect with non-ascii branch names (#4764) (#4810) 6 years ago
info Fix redirect with non-ascii branch names (#4764) (#4810) 6 years ago