]> source.dussan.org Git - gitea.git/commit
[Fix] Release attachment should use DownloadURL() not Name (#9529)
author6543 <6543@obermui.de>
Sat, 28 Dec 2019 23:33:13 +0000 (00:33 +0100)
committerzeripath <art27@cantab.net>
Sat, 28 Dec 2019 23:33:13 +0000 (23:33 +0000)
commit261c3a56a20659a11017ba03e627bf4c789c6899
tree074fd8bb258b07f124a16bd02938508fdfd42c5e
parent599c0ee75ffea3ad5f0049ac7d275081370eb149
[Fix] Release attachment should use DownloadURL() not Name (#9529)

* Handle if two or more attachments have the same name
* previously only the first could be downloaded - now each is downloadable
* dos also take care of  #6506 (fix was: #6512)
* use func DownloadURL() at issue attatchments too
routers/repo/repo.go
templates/repo/issue/view_content/attachments.tmpl
templates/repo/release/list.tmpl