summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/view.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/issue/view.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/issue/view.tmpl')
-rw-r--r--templates/repo/issue/view.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/view.tmpl b/templates/repo/issue/view.tmpl
index 007c044355..70e823d3b7 100644
--- a/templates/repo/issue/view.tmpl
+++ b/templates/repo/issue/view.tmpl
@@ -10,7 +10,7 @@
{{if .PageIsIssueList}}
<a class="ui green button" href="{{.RepoLink}}/issues/new">{{.i18n.Tr "repo.issues.new"}}</a>
{{else}}
- <a class="ui green button {{if not .PullRequestCtx.Allowed}}disabled{{end}}" href="{{.RepoLink}}/compare/{{.BranchName}}...{{.PullRequestCtx.HeadInfo}}">{{.i18n.Tr "repo.pulls.new"}}</a>
+ <a class="ui green button {{if not .PullRequestCtx.Allowed}}disabled{{end}}" href="{{.RepoLink}}/compare/{{.BranchName | EscapePound}}...{{.PullRequestCtx.HeadInfo | EscapePound}}">{{.i18n.Tr "repo.pulls.new"}}</a>
{{end}}
</div>
</div>