forgejo/modules
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
..
activitypub
analyze
appstate
auth
avatar Add user settings key/value DB table (#16834) 2021-11-22 04:47:23 -05:00
base
cache Test cache during init (#17852) 2021-12-06 00:24:57 +08:00
charset
context Prevent double decoding of % in url params (#17997) 2021-12-16 17:40:18 +00:00
convert Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
csv
doctor Move keys to models/asymkey (#17917) 2021-12-10 16:14:24 +08:00
emoji
eventsource
generate
git Improve checkBranchName (#17901) 2021-12-08 19:08:16 +00:00
gitgraph Add missing X-Total-Count and fix some related bugs (#17968) 2021-12-15 13:39:34 +08:00
graceful Make SSL cipher suite configurable (#17440) 2021-11-20 01:12:43 -05:00
hcaptcha
highlight
hostmatcher Use hostmatcher to replace matchlist, improve security (#17605) 2021-11-20 17:34:05 +08:00
httpcache
httplib
indexer Add missing X-Total-Count and fix some related bugs (#17968) 2021-12-15 13:39:34 +08:00
json Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
lfs Use hostmatcher to replace matchlist, improve security (#17605) 2021-11-20 17:34:05 +08:00
log
markup Fixed emoji alias not parsed in links (#16221) 2021-12-15 23:49:12 +00:00
metrics
migration Use fmt.Sprintf correctly (#17886) 2021-12-02 20:36:50 +01:00
nosql Remove unnecessary variable assignments (#17695) 2021-11-18 09:33:06 +08:00
notification Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
options
password
pprof
private Move keys to models/asymkey (#17917) 2021-12-10 16:14:24 +08:00
process Make Requests Processes and create process hierarchy. Associate OpenRepository with context. (#17125) 2021-11-30 20:06:32 +00:00
proxy
public
queue Prevent deadlock in TestPersistableChannelQueue (#17717) 2021-11-19 01:13:25 +00:00
recaptcha
references
repository Make AvatarRenderedSizeFactor configurable and set it to 3 (#17951) 2021-12-16 10:18:38 +08:00
secret
session
setting Make AvatarRenderedSizeFactor configurable and set it to 3 (#17951) 2021-12-16 10:18:38 +08:00
ssh Move keys to models/asymkey (#17917) 2021-12-10 16:14:24 +08:00
storage
structs Add migrate from Codebase (#16768) 2021-12-02 23:24:02 +01:00
svg
sync
templates Make AvatarRenderedSizeFactor configurable and set it to 3 (#17951) 2021-12-16 10:18:38 +08:00
test Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
timeutil
translation
typesniffer
updatechecker
upload Replace regex usage for MIME parsing (#17831) 2021-11-27 19:12:43 +08:00
uri
user
util Fix a panic in NotifyCreateIssueComment (caused by string truncation) (#17928) 2021-12-09 05:41:17 +00:00
validation
web Remove unnecessary variable assignments (#17695) 2021-11-18 09:33:06 +08:00