aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/commits_table.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/commits_table.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/commits_table.tmpl')
-rw-r--r--templates/repo/commits_table.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl
index ec433974c9..53c2f98f4d 100644
--- a/templates/repo/commits_table.tmpl
+++ b/templates/repo/commits_table.tmpl
@@ -5,7 +5,7 @@
</div>
<div class="ten wide right aligned column">
{{if .PageIsCommits}}
- <form class="ignore-dirty" action="{{.RepoLink}}/commits/{{.BranchNameSubURL}}/search">
+ <form class="ignore-dirty" action="{{.RepoLink}}/commits/{{.BranchNameSubURL | EscapePound}}/search">
<div class="ui tiny search input">
<input name="q" placeholder="{{.i18n.Tr "repo.commits.search"}}" value="{{.Keyword}}" autofocus>
</div>
@@ -79,4 +79,4 @@
</div>
{{end}}
-{{template "base/paginate" .}} \ No newline at end of file
+{{template "base/paginate" .}}