diff options
author | nubenum <github@nubenum.de> | 2018-09-17 00:28:23 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-09-17 01:28:23 +0300 |
commit | 756eafaaf68b3cadb3f33f37554a6aa2d83921ef (patch) | |
tree | f69ae62606075586aa43463f11c39682d606c403 /templates/repo/pulls/commits.tmpl | |
parent | acb6f8a518678278368f76d42e6d0763a21e6e9b (diff) | |
download | gitea-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/pulls/commits.tmpl')
-rw-r--r-- | templates/repo/pulls/commits.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/pulls/commits.tmpl b/templates/repo/pulls/commits.tmpl index 99bac62cfa..d084f9bc5a 100644 --- a/templates/repo/pulls/commits.tmpl +++ b/templates/repo/pulls/commits.tmpl @@ -5,7 +5,7 @@ <div class="navbar"> {{template "repo/issue/navbar" .}} <div class="ui right"> - <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> </div> </div> <div class="ui divider"></div> |