gitea/routers/web
6543 c5193a8481
In Render tolerate not being passed a context (#16842) (#16858)
* In Render tolerate not being passed a context

It is possible for RenderString to be passed to an external renderer if markdown
is set to be rendered by an external renderer. No context is currently sent to these
meaning that this will error out.

Fix #16835

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

* Add Context to Repo calls for RenderString

All calls from routers can easily add the context - so add it.

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

Co-authored-by: zeripath <art27@cantab.net>
2021-08-29 15:25:45 +01:00
..
admin Fix activation of primary email addresses (#16385) 2021-07-13 22:59:27 +02:00
dev Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
events Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
explore Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
org Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
repo In Render tolerate not being passed a context (#16842) (#16858) 2021-08-29 15:25:45 +01:00
user In Render tolerate not being passed a context (#16842) (#16858) 2021-08-29 15:25:45 +01:00
base.go Add sso.Group, context.Auth, context.APIAuth to allow auth special routes (#16086) 2021-06-09 19:53:16 +02:00
goget.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02: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
swagger_json.go Refactor routers directory (#15800) 2021-06-09 01:33:54 +02:00
web.go Fix issue pasted image missing if no release permission (#16520) (#16527) 2021-07-24 18:34:57 +02:00