mirror of
https://github.com/go-gitea/gitea
synced 2024-11-19 08:39:31 +01:00
c5901b622d
In #26851, it assumed that `Commit` always exists when `PageIsDiff==true`. But for a 404 page, the `Commit` doesn't exist, so the following code would cause panic because nil value can't be passed as string parameter to `IsMultilineCommitMessage(string)` (or the StringUtils.Cut in later PRs) |
||
---|---|---|
.. | ||
alert_details.tmpl | ||
alert.tmpl | ||
disable_form_autofill.tmpl | ||
footer_content.tmpl | ||
footer.tmpl | ||
head_navbar.tmpl | ||
head_opengraph.tmpl | ||
head_script.tmpl | ||
head_style.tmpl | ||
head.tmpl | ||
modal_actions_confirm.tmpl | ||
paginate.tmpl |