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
..
commits_search_test.git Support search operators for commits search (#6479) 5 years ago
git_hooks_test.git Add API for manipulating Git hooks (#6436) 5 years ago
glob.git Restrict repository indexing by glob match (#7767) 5 years ago
repo1.git Add an api endpoint to fetch git notes (#15373) (#16649) 3 years ago
repo1.wiki.git Add TestPrepareWikiFileName (#16487) 3 years ago
repo2.git Support custom mime type mapping for text files (#16304) 3 years ago
repo15.git Improve LFS tests + fix lfs url refs + keep path upper/lowercase in db. (#3092) 7 years ago
repo16.git Fix some tests : make coverage -> test (#2492) 7 years ago
repo20.git Avoiding directory execution on hook (#10954) (#10955) 4 years ago
utf8.git Prevent double decoding of % in url params (#17997) 3 years ago