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/header.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/header.tmpl')
-rw-r--r-- | templates/repo/header.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 5312a49bec..bf05230155 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -48,7 +48,7 @@ <div class="ui tabs container"> <div class="ui tabular stackable menu navbar"> {{if .Repository.UnitEnabled $.UnitTypeCode}} - <a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}{{if (ne .BranchName .Repository.DefaultBranch)}}/src/{{.BranchNameSubURL}}{{end}}"> + <a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}{{if (ne .BranchName .Repository.DefaultBranch)}}/src/{{.BranchNameSubURL | EscapePound}}{{end}}"> <i class="octicon octicon-code"></i> {{.i18n.Tr "repo.code"}} </a> {{end}} |