You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
3 years ago
..
setting Rename ctx.Form() to ctx.FormString() and move code into own file (#16571) 3 years ago
auth.go Related refactors to ctx.FormX functions (#16567) 3 years ago
auth_openid.go Rename ctx.Form() to ctx.FormString() and move code into own file (#16571) 3 years ago
avatar.go Rename context.Query to context.Form (#16562) 3 years ago
home.go In Render tolerate not being passed a context (#16842) 3 years ago
home_test.go Refactor routers directory (#15800) 3 years ago
main_test.go Refactor routers directory (#15800) 3 years ago
notification.go Related refactors to ctx.FormX functions (#16567) 3 years ago
oauth.go Decoupled code from DefaultSigningKey (#16743) 3 years ago
oauth_test.go Decoupled code from DefaultSigningKey (#16743) 3 years ago
profile.go In Render tolerate not being passed a context (#16842) 3 years ago
task.go Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago