diff options
author | Vladimir Vissoultchev <wqweto@gmail.com> | 2015-07-28 19:51:40 +0300 |
---|---|---|
committer | Vladimir Vissoultchev <wqweto@gmail.com> | 2015-07-28 19:51:40 +0300 |
commit | 2bb1fb8f44bcd39c1f54b33377212636ae8c9558 (patch) | |
tree | da42d21e7c641d5e1ae3ddfda4804af8cfa5e217 /templates/repo/view_file.tmpl | |
parent | 43bfee0d4872932c1da185e8367e21795bc4ceb5 (diff) | |
download | gitea-2bb1fb8f44bcd39c1f54b33377212636ae8c9558.tar.gz gitea-2bb1fb8f44bcd39c1f54b33377212636ae8c9558.zip |
Use EscapePound in link hrefs in diff/file views
Diffstat (limited to 'templates/repo/view_file.tmpl')
-rw-r--r-- | templates/repo/view_file.tmpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 4d11170bd0..274c7df22e 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -13,11 +13,11 @@ {{end}} {{if not .ReadmeInList}} {{if not .IsCommit}} - <a class="right" href="{{.RepoLink}}/src/{{.CommitId}}/{{.TreeName}}"> + <a class="right" href="{{.RepoLink}}/src/{{.CommitId}}/{{EscapePound .TreeName}}"> <button class="btn btn-medium btn-gray btn-right-radius btn-comb">{{.i18n.Tr "repo.file_permalink"}}</button> </a> {{end}} - <a class="right" href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}/{{.TreeName}}"> + <a class="right" href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}/{{EscapePound .TreeName}}"> <button class="btn btn-medium btn-gray btn-right-radius btn-comb">{{.i18n.Tr "repo.file_history"}}</button> </a> <a class="right" href="{{EscapePound .FileLink}}"> @@ -47,4 +47,4 @@ </table> {{end}} </div> -</div>
\ No newline at end of file +</div> |