diff options
author | Unknwon <u@gogs.io> | 2018-12-10 22:21:42 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2018-12-10 22:21:42 -0500 |
commit | d3d828498599763c6a6364e112fe3b96de737377 (patch) | |
tree | 1060d149a37b0f9fdf230691bd3f8d7c8fb4c98f /templates/repo/commits_table.tmpl | |
parent | f545faa06d553750b9f4018336e810530389f88c (diff) |
templates: sanitize special links in commit message (#5545)
Reported by @cezar97.
Diffstat (limited to 'templates/repo/commits_table.tmpl')
-rw-r--r-- | templates/repo/commits_table.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index 1b835d33..a386b14e 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -47,7 +47,7 @@ {{else}} <a rel="nofollow" class="ui sha label" href="{{AppSubURL}}/{{$.Username}}/{{$.Reponame}}/commit/{{.ID}}">{{ShortSHA1 .ID.String}}</a> {{end}} - <span class="{{if gt .ParentCount 1}}grey text {{end}} has-emoji">{{RenderCommitMessage false .Summary $.RepoLink $.Repository.ComposeMetas}}</span> + <span class="{{if gt .ParentCount 1}}grey text {{end}} has-emoji">{{RenderCommitMessage false .Summary $.RepoLink $.Repository.ComposeMetas | Str2html}}</span> </td> <td class="grey text right aligned">{{TimeSince .Author.When $.Lang}}</td> </tr> |