forgejo/services
Gusted cff284fdc3 fix: use correct input for strip slashes middleware (#7295)
- The router must use the escaped path in order to ensure correct functionality (at least, that is what they say). However `req.URL.Path` shouldn't be set to the escaped path, which is fixed in this patch.
- Simplify the logic and no longer try to use `rctx.RoutePath`, this is only useful if the middleware was placed after some routing parsing was done.
- Resolves forgejo/forgejo#7294
- Resolves forgejo/forgejo#7292
- Add unit test

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7295
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-03-22 16:49:05 +00:00
..
actions feat(api): return run info for dispatched workflows (#7193) 2025-03-14 16:01:15 +00:00
agit
asymkey
attachment
auth Drop SSPI auth support and more Windows files (#7148) 2025-03-08 00:43:41 +00:00
automerge
context fix: use correct input for strip slashes middleware (#7295) 2025-03-22 16:49:05 +00:00
contexttest
convert feat: add pronoun privacy option (#6773) 2025-02-15 13:07:15 +00:00
cron Use default Git timeout when checking repo health (#33593) 2025-02-25 12:56:32 +01:00
doctor
externalaccount
f3 chore(dependency): upgrade gof3 v3.10.6 (#7258) 2025-03-18 14:18:00 +00:00
federation
feed feat: add commit limit for webhook payload (#6797) 2025-02-07 19:26:50 +00:00
forgejo
forms Drop SSPI auth support and more Windows files (#7148) 2025-03-08 00:43:41 +00:00
gitdiff Ignore trivial errors when updating push data (#33864) 2025-03-14 11:26:16 +01:00
indexer
issue
lfs
mailer feat: parse inline attachments for incoming mail (#7136) 2025-03-07 17:54:26 +00:00
markup Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
migrations fix: handle deleted user modifying event state in gitlab migration (#7210) 2025-03-14 16:03:22 +00:00
mirror Fix mirror bug (#33597) 2025-02-25 12:56:32 +01:00
notify
org
packages Add composor source field (#33502) 2025-03-04 00:00:09 +01:00
pull Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
release
remote
repository Ignore trivial errors when updating push data (#33864) 2025-03-14 11:26:16 +01:00
secrets
shared/automerge
task
uinotification
user fix(web): forbid blocked users from reopening issues (#7010) 2025-03-01 12:39:52 +00:00
webhook Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
wiki