]> source.dussan.org Git - gitea.git/commit
In Render tolerate not being passed a context (#16842)
authorzeripath <art27@cantab.net>
Sat, 28 Aug 2021 20:15:56 +0000 (21:15 +0100)
committerGitHub <noreply@github.com>
Sat, 28 Aug 2021 20:15:56 +0000 (21:15 +0100)
commitc9c0475f4d664766c174a4563ba9ec210cadfeac
tree817ae8782c3510cc14c1dc91f4cd821f0dea8e5a
parent90c01804470f45018de0653a19d5211c986c035c
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>
modules/markup/external/external.go
routers/web/repo/issue.go
routers/web/repo/milestone.go
routers/web/repo/projects.go
routers/web/repo/release.go
routers/web/user/home.go
routers/web/user/profile.go