Use EscapePound in link hrefs in diff/file views

This commit is contained in:
Vladimir Vissoultchev 2015-07-28 19:51:40 +03:00
parent 43bfee0d48
commit 2bb1fb8f44
3 changed files with 13 additions and 12 deletions

View file

@ -50,7 +50,8 @@
{{if eq $i $l}}
<span class="bread">{{$v}}</span>
{{else}}
<span class="bread"><a href="{{EscapePound $.BranchLink}}/{{index $.Paths $i}}">{{$v}}</a></span>
{{ $p := index $.Paths $i}}
<span class="bread"><a href="{{EscapePound $.BranchLink}}/{{EscapePound $p}}">{{$v}}</a></span>
{{end}}
{{end}}
</li>