gitea/routers
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
..
api/v1 Set AllowedHeaders on API CORS handler (#16524) (#16618) 2021-08-04 21:57:59 +02:00
common Support custom mime type mapping for text files (#16304) 2021-06-30 17:31:54 -04:00
install just add some unit tests (#16291) 2021-06-29 22:00:02 +01:00
private Restore functionality for pushing non-standard refs (Partial #16705) (#16706) 2021-08-17 10:24:47 +02:00
utils just add some unit tests (#16291) 2021-06-29 22:00:02 +01:00
web In Render tolerate not being passed a context (#16842) (#16858) 2021-08-29 15:25:45 +01:00
init.go Add LRU mem cache implementation (#16226) 2021-07-10 23:54:15 +02:00