forgejo/templates
Giteabot 2399b4d483
Avoid unnecessary 500 panic when a commit doesn't exist () ()
Backport  by wxiaoguang

In , 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)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-01-07 10:40:30 +00:00
..
admin Add word break to the repo list in admin settings page () () 2023-11-14 14:31:43 +08:00
api/packages/pypi
base Avoid unnecessary 500 panic when a commit doesn't exist () () 2024-01-07 10:40:30 +00:00
code Fix 500 error of searching commits () () 2023-12-22 02:29:28 +00:00
custom
devtest Improve dropdown button alignment and fix hover bug () () 2023-10-16 16:15:15 +08:00
explore Keep profile tab when clicking on Language () () 2023-12-03 14:54:53 +00:00
mail
org Use full width for project boards () () 2023-11-27 18:20:53 +00:00
package switch destination directory for apt signing keys () () 2023-12-29 05:44:47 +00:00
projects Use full width for project boards () () 2023-11-27 18:20:53 +00:00
repo Fix 500 error of searching commits () () 2023-12-22 02:29:28 +00:00
shared Fix wrong due date rendering in issue list page () () 2023-12-22 17:25:43 +00:00
status Clean up template locale usage () () 2023-10-31 17:35:55 +01:00
swagger chore(api): support ignore password if login source type is LDAP for creating user API () () 2023-12-19 11:14:06 +08:00
user Make template DateTime show proper tooltip () () 2024-01-03 18:41:03 +08:00
webhook
home.tmpl Backport ctx locale refactoring manually () () () 2023-09-25 13:15:51 +00:00
install.tmpl Backport ctx locale refactoring manually () () () 2023-09-25 13:15:51 +00:00
post-install.tmpl Backport ctx locale refactoring manually () () () 2023-09-25 13:15:51 +00:00