diff options
author | cezar97 <cezar97@protonmail.com> | 2018-07-04 02:52:36 +0300 |
---|---|---|
committer | techknowlogick <techknowlogick@users.noreply.github.com> | 2018-07-03 19:52:36 -0400 |
commit | 51ba3df5ff5b58a77c31bcda9a8efd3cdafa1d99 (patch) | |
tree | cda666fa4f35b1b7e57f8e734764cccd4988a7fe /templates/repo/release | |
parent | 4b654ad17f50a441049c208e5011d0799522592b (diff) | |
download | gitea-51ba3df5ff5b58a77c31bcda9a8efd3cdafa1d99.tar.gz gitea-51ba3df5ff5b58a77c31bcda9a8efd3cdafa1d99.zip |
Add `noreferrer` to rel='noopener` for <a> tags (#4328)
Diffstat (limited to 'templates/repo/release')
-rw-r--r-- | templates/repo/release/list.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index af0f0fa82a..54cbb7b447 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -77,7 +77,7 @@ {{if .Attachments}} {{range .Attachments}} <li> - <a target="_blank" rel="noopener" href="{{AppSubUrl}}/attachments/{{.UUID}}"> + <a target="_blank" rel="noopener noreferrer" href="{{AppSubUrl}}/attachments/{{.UUID}}"> <strong><span class="ui image octicon octicon-package" title='{{.Name}}'></span> {{.Name}}</strong> <span class="ui text grey right">{{.Size | FileSize}}</span> </a> |