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/diff | |
parent | f545faa06d553750b9f4018336e810530389f88c (diff) |
templates: sanitize special links in commit message (#5545)
Reported by @cezar97.
Diffstat (limited to 'templates/repo/diff')
-rw-r--r-- | templates/repo/diff/page.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ <a class="ui floated right blue tiny button" href="{{EscapePound .SourcePath}}"> {{.i18n.Tr "repo.diff.browse_source"}} </a> - {{RenderCommitMessage true .Commit.Message $.RepoLink $.Repository.ComposeMetas}} + {{RenderCommitMessage true .Commit.Message $.RepoLink $.Repository.ComposeMetas | Str2html}} </div> <div class="ui attached info segment"> {{if .Author}} |