1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-27 13:39:19 -05:00
forgejo/integrations/gitea-repositories-meta
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
..
limited_org Fix org visibility bug when git cloning (#6743) 2019-04-25 21:59:10 +03:00
migration/lfs-test.git Add LFS Migration and Mirror (#14726) 2021-04-08 18:25:57 -04:00
org26 Redirect issue if repo has configured external tracker. (#9247) 2019-12-06 23:21:18 -05:00
privated_org Fix org visibility bug when git cloning (#6743) 2019-04-25 21:59:10 +03:00
user2 Prevent double decoding of % in url params (#17997) 2021-12-16 17:40:18 +00:00
user3/repo3.git Add review request api (#11355) 2020-10-20 14:18:25 -04:00
user5/repo4.git Kanban board (#8346) 2020-08-16 23:07:38 -04:00
user12/repo10.git Fix 404 when send pull request some situation (#6871) 2019-05-07 13:20:23 -04:00
user13/repo11.git Add commit statuses reports on pull request view (#6845) 2019-06-30 08:57:59 +01:00
user27 Rework repository archive (#14723) 2021-06-23 17:12:38 -04:00