In Render tolerate not being passed a context (#16842) #16858

Merged
6543 merged 1 commits from backport_16842 into release/v1.15 2021-08-29 14:25:45 +00:00
6543 commented 2021-08-29 08:42:48 +00:00 (Migrated from github.com)

Backport #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

  • 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

Backport #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 * 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>
KN4CK3R (Migrated from github.com) approved these changes 2021-08-29 14:03:29 +00:00
zeripath approved these changes 2021-08-29 14:25:36 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#16858
No description provided.