diff options
author | Vladimir Vissoultchev <wqweto@gmail.com> | 2015-07-28 11:42:06 +0300 |
---|---|---|
committer | Vladimir Vissoultchev <wqweto@gmail.com> | 2015-07-28 11:42:06 +0300 |
commit | 167265d533db2b7da1ea9e1a0f098d6e0d255183 (patch) | |
tree | edf78da63bf352a6002f3e6f4c8592636a2aa9e1 /templates/repo/view_list.tmpl | |
parent | 53bcf373c1d076dd14db6aff0247ae9dbdc49c77 (diff) | |
download | gitea-167265d533db2b7da1ea9e1a0f098d6e0d255183.tar.gz gitea-167265d533db2b7da1ea9e1a0f098d6e0d255183.zip |
Allow file and directory names to contain percent character
Diffstat (limited to 'templates/repo/view_list.tmpl')
-rw-r--r-- | templates/repo/view_list.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index f51c10025a..d3303193f8 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -50,7 +50,7 @@ <span class="octicon octicon-file-{{if or $entry.IsDir}}directory{{else}}text{{end}}"></span> </td> <td class="name"> - <a href="{{EscapePound $.BranchLink}}/{{$.TreePath}}{{$entry.Name}}" class="text-truncate">{{$entry.Name}}</a> + <a href="{{EscapePound $.BranchLink}}/{{EscapePound $.TreePath}}{{EscapePound $entry.Name}}" class="text-truncate">{{$entry.Name}}</a> </td> {{end}} <td class="sha"> @@ -66,4 +66,4 @@ </table> {{if .ReadmeExist}} {{template "repo/view_file" .}} -{{end}}
\ No newline at end of file +{{end}} |