From 68134e644156ec20add63ce371c74a9496c9a857 Mon Sep 17 00:00:00 2001 From: Jonas Franz Date: Mon, 19 Mar 2018 15:31:01 +0100 Subject: [PATCH] Escape branch name in dropdown menu (#3692) Signed-off-by: Jonas Franz (cherry picked from commit 61ce616) 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 ef34cc5cf..b7f4c9121 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}}