From 59e70c5ee99725a920f822c63283a3d38ee66781 Mon Sep 17 00:00:00 2001 From: Jonas Franz Date: Mon, 19 Mar 2018 15:29:16 +0100 Subject: [PATCH] Escape branch name in dropdown menu (#3691) Signed-off-by: Jonas Franz --- templates/repo/branch_dropdown.tmpl | 4 ++-- 1 file 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 @@
{{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}}