aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/settings/branches.tmpl
diff options
context:
space:
mode:
authornubenum <github@nubenum.de>2018-09-17 00:28:23 +0200
committerLauris BH <lauris@nix.lv>2018-09-17 01:28:23 +0300
commit756eafaaf68b3cadb3f33f37554a6aa2d83921ef (patch)
treef69ae62606075586aa43463f11c39682d606c403 /templates/repo/settings/branches.tmpl
parentacb6f8a518678278368f76d42e6d0763a21e6e9b (diff)
downloadgitea-756eafaaf68b3cadb3f33f37554a6aa2d83921ef.tar.gz
gitea-756eafaaf68b3cadb3f33f37554a6aa2d83921ef.zip
Fix some issues with special chars in branch names (#3767)
Signed-off-by: Robin Durner <github@nubenum.de>
Diffstat (limited to 'templates/repo/settings/branches.tmpl')
-rw-r--r--templates/repo/settings/branches.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/settings/branches.tmpl b/templates/repo/settings/branches.tmpl
index 85c1867713..6df2517a94 100644
--- a/templates/repo/settings/branches.tmpl
+++ b/templates/repo/settings/branches.tmpl
@@ -48,7 +48,7 @@
<div class="default text">{{.i18n.Tr "repo.settings.choose_branch"}}</div>
<div class="menu transition hidden" tabindex="-1" style="display: block !important;">
{{range .LeftBranches}}
- <a class="item" href="{{$.Repository.Link}}/settings/branches/{{.}}">{{.}}</a>
+ <a class="item" href="{{$.Repository.Link}}/settings/branches/{{. | EscapePound}}">{{.}}</a>
{{end}}
</div>
</div>
@@ -62,7 +62,7 @@
{{range .ProtectedBranches}}
<tr>
<td><div class="ui basic label blue">{{.BranchName}}</div></td>
- <td class="right aligned"><a class="rm ui button" href="{{$.Repository.Link}}/settings/branches/{{.BranchName}}">{{$.i18n.Tr "repo.settings.edit_protected_branch"}}</a></td>
+ <td class="right aligned"><a class="rm ui button" href="{{$.Repository.Link}}/settings/branches/{{.BranchName | EscapePound}}">{{$.i18n.Tr "repo.settings.edit_protected_branch"}}</a></td>
</tr>
{{else}}
<tr class="center aligned"><td>{{.i18n.Tr "repo.settings.no_protected_branch"}}</td></tr>