aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/branch/list.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/branch/list.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/branch/list.tmpl')
-rw-r--r--templates/repo/branch/list.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl
index 2ef96defa2..ce0558e92b 100644
--- a/templates/repo/branch/list.tmpl
+++ b/templates/repo/branch/list.tmpl
@@ -38,10 +38,10 @@
<tr>
<td>
{{if .IsDeleted}}
- <s><a href="{{$.RepoLink}}/src/branch/{{.Name}}">{{.Name}}</a></s>
+ <s><a href="{{$.RepoLink}}/src/branch/{{.Name | EscapePound}}">{{.Name}}</a></s>
<p class="time">{{$.i18n.Tr "repo.branch.deleted_by" .DeletedBranch.DeletedBy.Name}} {{TimeSinceUnix .DeletedBranch.DeletedUnix $.i18n.Lang}}</p>
{{else}}
- <a href="{{$.RepoLink}}/src/branch/{{.Name}}">{{.Name}}</a>
+ <a href="{{$.RepoLink}}/src/branch/{{.Name | EscapePound}}">{{.Name}}</a>
<p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}}</p>
</td>
{{end}}