1
0
Fork 0
forgejo/modules
zeripath 16adaaeaa3
Instead of using routerCtx just escape the url before routing ()
A consequence of forcibly setting the RoutePath to the escaped url is that the
auto routing to endpoints without terminal slashes fails (Causing #18060.) This
failure raises the possibility that forcibly setting the RoutePath causes other
unexpected behaviors too.

Therefore, instead we should simply pre-escape the URL in the process registering
handler. Then the request URL will be properly escaped for all the following calls.

Fix 
Fix 
Replace 
Replace 

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-12-25 00:50:49 +08:00
..
activitypub
analyze
appstate
auth
avatar Simplify parameter types () 2021-12-20 04:41:31 +00:00
base Simplify parameter types () 2021-12-20 04:41:31 +00:00
cache Test cache during init () 2021-12-06 00:24:57 +08:00
charset Simplify parameter types () 2021-12-20 04:41:31 +00:00
context Instead of using routerCtx just escape the url before routing () 2021-12-25 00:50:49 +08:00
convert Add API to manage repo tranfers () 2021-12-23 23:26:52 -05:00
csv
doctor Quote references to the user table in consistency checks () 2021-12-22 23:52:57 +00:00
emoji
eventsource Simplify parameter types () 2021-12-20 04:41:31 +00:00
generate
git Do not read or write git reference files directly () 2021-12-23 21:44:00 +08:00
gitgraph Simplify parameter types () 2021-12-20 04:41:31 +00:00
graceful Make SSL cipher suite configurable () 2021-11-20 01:12:43 -05:00
hcaptcha
highlight
hostmatcher Simplify parameter types () 2021-12-20 04:41:31 +00:00
httpcache
httplib
indexer Prevent hang in git cat-file if repository is not a valid repository and other fixes () 2021-12-16 19:01:14 +00:00
json Move repository model into models/repo () 2021-12-10 09:27:50 +08:00
lfs Use hostmatcher to replace matchlist, improve security () 2021-11-20 17:34:05 +08:00
log Simplify parameter types () 2021-12-20 04:41:31 +00:00
markup Simplify parameter types () 2021-12-20 04:41:31 +00:00
metrics
migration Use fmt.Sprintf correctly () 2021-12-02 20:36:50 +01:00
nosql
notification Simplify parameter types () 2021-12-20 04:41:31 +00:00
options
password
pprof
private Move keys to models/asymkey () 2021-12-10 16:14:24 +08:00
process Make Requests Processes and create process hierarchy. Associate OpenRepository with context. () 2021-11-30 20:06:32 +00:00
proxy
public
queue
recaptcha
references Simplify parameter types () 2021-12-20 04:41:31 +00:00
repository Make AvatarRenderedSizeFactor configurable and set it to 3 () 2021-12-16 10:18:38 +08:00
secret Simplify parameter types () 2021-12-20 04:41:31 +00:00
session Reset Session ID on login () 2021-12-20 22:12:26 +08:00
setting Simplify parameter types () 2021-12-20 04:41:31 +00:00
ssh Simplify parameter types () 2021-12-20 04:41:31 +00:00
storage
structs - name: new parameter in CreateForkOption to give the forked repository () 2021-12-24 22:43:00 +08:00
svg
sync
templates Simplify parameter types () 2021-12-20 04:41:31 +00:00
test Move repository model into models/repo () 2021-12-10 09:27:50 +08:00
timeutil
translation
typesniffer
updatechecker Use JSON module instead of stdlib json () 2021-12-17 09:15:02 +08:00
upload Simplify parameter types () 2021-12-20 04:41:31 +00:00
uri Prevent NPE if gitea uploader fails to open url () 2021-12-23 16:27:33 +00:00
user
util Simplify parameter types () 2021-12-20 04:41:31 +00:00
validation
web Simplify parameter types () 2021-12-20 04:41:31 +00:00