1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 09:04:26 +00:00
gitea/routers/web
zeripath 3f71ab9a12
Clean paths when looking in Storage (#19124)
* Clean paths when looking in Storage

Ensure paths are clean for minio aswell as local storage.

Use url.Path not RequestURI/EscapedPath in storageHandler.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Apply suggestions from code review

Co-authored-by: Lauris BH <lauris@nix.lv>
2022-03-22 17:02:26 -04:00
..
admin Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
auth Use ctx instead of db.DefaultContext in some packages(routers/services/modules) (#19163) 2022-03-22 16:22:54 +01:00
dev Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
events Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
explore Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
feed Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
org Use ctx instead of db.DefaultContext in some packages(routers/services/modules) (#19163) 2022-03-22 16:22:54 +01:00
repo Use the new/choose link for New Issue on project page (#19172) 2022-03-22 19:54:24 +00:00
user Use ctx instead of db.DefaultContext in some packages(routers/services/modules) (#19163) 2022-03-22 16:22:54 +01:00
base.go Clean paths when looking in Storage (#19124) 2022-03-22 17:02:26 -04:00
goget.go Refactor HTTP request context (#17979) 2021-12-15 14:59:57 +08:00
home.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
metrics.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
nodeinfo.go Add nodeinfo endpoint for federation purposes (#16953) 2021-09-28 01:38:06 +02:00
swagger_json.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
web.go Use custom favicon when viewing static files if it exists (#19130) 2022-03-19 19:53:31 +00:00