Browse Source

templates/repo/branches: escape pound in branch name (#4874)

pull/5126/head
Unknwon 7 years ago
parent
commit
28e0003a9a
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 4
      templates/repo/settings/branches.tmpl

4
templates/repo/settings/branches.tmpl

@ -41,7 +41,7 @@
<i class="dropdown icon"></i> <i class="dropdown icon"></i>
<div class="menu"> <div class="menu">
{{range .Branches}} {{range .Branches}}
<div class="item" data-url="{{$.Link}}/{{.}}">{{.}}</div> <div class="item" data-url="{{$.Link}}/{{EscapePound .}}">{{.}}</div>
{{end}} {{end}}
</div> </div>
</div> </div>
@ -50,7 +50,7 @@
<div class="ui protected-branches list"> <div class="ui protected-branches list">
{{range .ProtectBranches}} {{range .ProtectBranches}}
<div class="item"> <div class="item">
<a href="{{$.Link}}/{{.}}"><code>{{.}}</code></a> <a href="{{$.Link}}/{{EscapePound .}}"><code>{{.}}</code></a>
</div> </div>
{{end}} {{end}}
</div> </div>

Loading…
Cancel
Save