From d3d828498599763c6a6364e112fe3b96de737377 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 10 Dec 2018 22:21:42 -0500 Subject: templates: sanitize special links in commit message (#5545) Reported by @cezar97. --- templates/repo/diff/page.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/repo/diff/page.tmpl') diff --git a/templates/repo/diff/page.tmpl b/templates/repo/diff/page.tmpl index eae67b7f..a5716e6e 100644 --- a/templates/repo/diff/page.tmpl +++ b/templates/repo/diff/page.tmpl @@ -9,7 +9,7 @@ {{.i18n.Tr "repo.diff.browse_source"}} - {{RenderCommitMessage true .Commit.Message $.RepoLink $.Repository.ComposeMetas}} + {{RenderCommitMessage true .Commit.Message $.RepoLink $.Repository.ComposeMetas | Str2html}}
{{if .Author}} -- cgit v1.2.3