1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/modules/markup
zeripath c9c0475f4d
In Render tolerate not being passed a context (#16842)
* 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>
2021-08-28 21:15:56 +01:00
..
common Code Formats, Nits & Unused Func/Var deletions (#15286) 2021-04-09 09:40:34 +02:00
csv Add sanitizer rules per renderer (#16110) 2021-06-23 17:09:51 -04:00
external In Render tolerate not being passed a context (#16842) 2021-08-28 21:15:56 +01:00
markdown Fix table alignment in markdown (#16596) 2021-08-02 17:11:18 +01:00
mdstripper Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
orgmode Add sanitizer rules per renderer (#16110) 2021-06-23 17:09:51 -04:00
html_internal_test.go Refactor renders (#15175) 2021-04-19 18:25:08 -04:00
html_test.go Fix NPE in fuzzer (#16680) 2021-08-13 00:22:05 +02:00
html.go Fix NPE in fuzzer (#16680) 2021-08-13 00:22:05 +02:00
renderer_test.go Refactor renders (#15175) 2021-04-19 18:25:08 -04:00
renderer.go cleanup code issueFullPattern in modules/markup (#16419) 2021-07-15 22:33:56 +02:00
sanitizer_test.go Fix data URI scramble (#16098) 2021-06-07 18:55:26 +02:00
sanitizer.go Add sanitizer rules per renderer (#16110) 2021-06-23 17:09:51 -04:00