forgejo/integrations/gitea-repositories-meta/user2
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
..
commits_search_test.git Support search operators for commits search (#6479) 2019-04-12 10:28:44 +08:00
git_hooks_test.git Add API for manipulating Git hooks (#6436) 2019-04-17 01:31:08 -04:00
glob.git Restrict repository indexing by glob match (#7767) 2019-09-11 20:26:28 +03:00
repo1.git Add an api endpoint to fetch git notes (#15373) (#16649) 2021-08-11 03:01:40 +02:00
repo1.wiki.git Add TestPrepareWikiFileName (#16487) 2021-07-20 15:16:20 +02:00
repo2.git Support custom mime type mapping for text files (#16304) 2021-06-30 17:31:54 -04:00
repo15.git Improve LFS tests + fix lfs url refs + keep path upper/lowercase in db. (#3092) 2017-12-08 20:21:37 +08:00
repo16.git Fix some tests : make coverage -> test (#2492) 2017-09-12 13:51:12 +08:00
repo20.git Avoiding directory execution on hook (#10954) (#10955) 2020-04-04 11:29:58 -05:00
utf8.git Prevent double decoding of % in url params (#17997) 2021-12-16 17:40:18 +00:00