Commit 6e7d28c
authored
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 <[email protected]>1 parent e0e3ba6 commit 6e7d28c
File tree
12 files changed
+41
-1
lines changed- integrations
- gitea-repositories-meta/user2/utf8.git
- objects
- 4c
- 50
- 59
- 64
- 84
- 9b
- a4
- c7
- e9
- refs/heads
- modules/context
12 files changed
+41
-1
lines changedBinary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments