summaryrefslogtreecommitdiffstats
path: root/templates/repo/home.tmpl
diff options
context:
space:
mode:
authorVladimir Vissoultchev <wqweto@gmail.com>2015-07-28 19:51:40 +0300
committerVladimir Vissoultchev <wqweto@gmail.com>2015-07-28 19:51:40 +0300
commit2bb1fb8f44bcd39c1f54b33377212636ae8c9558 (patch)
treeda42d21e7c641d5e1ae3ddfda4804af8cfa5e217 /templates/repo/home.tmpl
parent43bfee0d4872932c1da185e8367e21795bc4ceb5 (diff)
downloadgitea-2bb1fb8f44bcd39c1f54b33377212636ae8c9558.tar.gz
gitea-2bb1fb8f44bcd39c1f54b33377212636ae8c9558.zip
Use EscapePound in link hrefs in diff/file views
Diffstat (limited to 'templates/repo/home.tmpl')
-rw-r--r--templates/repo/home.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index 7a18ed985d..831a3962d8 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -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>