summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorJonas Franz <info@jonasfranz.software>2018-03-19 15:29:16 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2018-03-19 22:29:16 +0800
commit59e70c5ee99725a920f822c63283a3d38ee66781 (patch)
tree602e97b88d0cb6fa3bd9952f2bd7ef35027d7d53 /templates/repo
parentc28bf94252534ca8fbd1f1a1e36c1e1a60eeb41b (diff)
downloadgitea-59e70c5ee99725a920f822c63283a3d38ee66781.tar.gz
gitea-59e70c5ee99725a920f822c63283a3d38ee66781.zip
Escape branch name in dropdown menu (#3691)
Signed-off-by: Jonas Franz <info@jonasfranz.software>
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/branch_dropdown.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/branch_dropdown.tmpl b/templates/repo/branch_dropdown.tmpl
index ef34cc5cf7..b7f4c91212 100644
--- a/templates/repo/branch_dropdown.tmpl
+++ b/templates/repo/branch_dropdown.tmpl
@@ -47,9 +47,9 @@
</div>
<div class="text small">
{{if .IsViewBranch}}
- {{.i18n.Tr "repo.branch.create_from" .BranchName | Safe}}
+ {{.i18n.Tr "repo.branch.create_from" .BranchName}}
{{else}}
- {{.i18n.Tr "repo.branch.create_from" (ShortSha .BranchName) | Safe}}
+ {{.i18n.Tr "repo.branch.create_from" (ShortSha .BranchName)}}
{{end}}
</div>
</a>