aboutsummaryrefslogtreecommitdiff
path: root/templates/repo/commits_table.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2018-12-10 22:21:42 -0500
committerUnknwon <u@gogs.io>2018-12-10 22:21:42 -0500
commitd3d828498599763c6a6364e112fe3b96de737377 (patch)
tree1060d149a37b0f9fdf230691bd3f8d7c8fb4c98f /templates/repo/commits_table.tmpl
parentf545faa06d553750b9f4018336e810530389f88c (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.tmpl2
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>