1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-28 13:49:13 -05:00
forgejo/routers/web
zeripath 206ea10b45
Prevent NPE on invalid diff (#17197)
* Prevent NPE on invalid diff

If ParseCompareInfo returns a nil compare info the defer function needs to ensure
that it does not attempt to close the HeadGitRepo.

Fix #17193

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

* add TEST

Co-authored-by: 6543 <6543@obermui.de>
2021-09-30 21:31:02 +02:00
..
admin Allow LDAP Sources to provide Avatars (#16851) 2021-09-26 22:39:36 -04:00
dev Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
events Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
explore Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
org Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
repo Prevent NPE on invalid diff (#17197) 2021-09-30 21:31:02 +02:00
user Fix wrong i18n keys (#17150) 2021-09-25 16:27:01 +02:00
base.go Fix bug of get context user (#17169) 2021-09-28 21:13:04 +08:00
goget.go Related refactors to ctx.FormX functions (#16567) 2021-08-11 18:08:52 +03:00
home.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02: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 Add nodeinfo endpoint for federation purposes (#16953) 2021-09-28 01:38:06 +02:00