mirror of
https://github.com/go-gitea/gitea
synced 2025-01-12 02:34:28 +00:00
Make sure file attachments on a release get a properly escaped URL when linking. Fixes #6506
This commit is contained in:
parent
3b28de7d8e
commit
2551660f49
@ -77,7 +77,7 @@
|
|||||||
{{if .Attachments}}
|
{{if .Attachments}}
|
||||||
{{range $attachment := .Attachments}}
|
{{range $attachment := .Attachments}}
|
||||||
<li>
|
<li>
|
||||||
<a target="_blank" rel="noopener noreferrer" href="{{$.RepoLink}}/releases/download/{{$release.TagName}}/{{$attachment.Name}}">
|
<a target="_blank" rel="noopener noreferrer" href="{{$.RepoLink}}/releases/download/{{$release.TagName | PathEscape}}/{{$attachment.Name | PathEscape}}">
|
||||||
<strong><span class="ui image octicon octicon-package" title='{{$attachment.Name}}'></span> {{$attachment.Name}}</strong>
|
<strong><span class="ui image octicon octicon-package" title='{{$attachment.Name}}'></span> {{$attachment.Name}}</strong>
|
||||||
<span class="ui text grey right">{{$attachment.Size | FileSize}}</span>
|
<span class="ui text grey right">{{$attachment.Size | FileSize}}</span>
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user