summaryrefslogtreecommitdiffstats
path: root/templates/repo/blame.tmpl
diff options
context:
space:
mode:
authorEarl Warren <contact@earl-warren.org>2024-03-04 00:05:15 +0100
committerEarl Warren <contact@earl-warren.org>2024-03-06 05:10:45 +0100
commit801792e4dcc473783d649f58acd451f60dc882d2 (patch)
tree5286f38ddbd0072e663af76473c047e72bfd5221 /templates/repo/blame.tmpl
parentRename Str2html to SanitizeHTML and clarify its behavior (#29516) (diff)
downloadforgejo-801792e4dcc473783d649f58acd451f60dc882d2.tar.xz
forgejo-801792e4dcc473783d649f58acd451f60dc882d2.zip
Rename Str2html to SanitizeHTML and clarify its behavior (followup)
Diffstat (limited to 'templates/repo/blame.tmpl')
-rw-r--r--templates/repo/blame.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/blame.tmpl b/templates/repo/blame.tmpl
index 3bd5e36949..75104cdcd2 100644
--- a/templates/repo/blame.tmpl
+++ b/templates/repo/blame.tmpl
@@ -2,11 +2,11 @@
{{$revsFileLink := URLJoin .RepoLink "src" .BranchNameSubURL "/.git-blame-ignore-revs"}}
{{if .UsesIgnoreRevs}}
<div class="ui info message">
- <p>{{ctx.Locale.Tr "repo.blame.ignore_revs" $revsFileLink (print $revsFileLink "?bypass-blame-ignore=true") | Str2html}}</p>
+ <p>{{ctx.Locale.Tr "repo.blame.ignore_revs" $revsFileLink (print $revsFileLink "?bypass-blame-ignore=true") | SanitizeHTML}}</p>
</div>
{{else}}
<div class="ui error message">
- <p>{{ctx.Locale.Tr "repo.blame.ignore_revs.failed" $revsFileLink | Str2html}}</p>
+ <p>{{ctx.Locale.Tr "repo.blame.ignore_revs.failed" $revsFileLink | SanitizeHTML}}</p>
</div>
{{end}}
{{end}}