diff options
author | cezar97 <cezar97@protonmail.com> | 2018-07-02 14:33:14 +0300 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2018-07-02 19:33:14 +0800 |
commit | 87b229d280def1cd591a9a823b1b2b0bfc8e693e (patch) | |
tree | e91d12b81f7681a908420b2c7d1fa9afb05a99c9 /templates/repo/release | |
parent | 2a86b3e31d19e8dab987dcf927cfb3363e946d53 (diff) |
templates: add 'rel=noopener noreferrer' to <a> tags (#5319)
Signed-off-by: cezar97 <cezar97@protonmail.com>
Diffstat (limited to 'templates/repo/release')
-rw-r--r-- | templates/repo/release/new.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/release/new.tmpl b/templates/repo/release/new.tmpl index a6bc7870..1072dd5d 100644 --- a/templates/repo/release/new.tmpl +++ b/templates/repo/release/new.tmpl @@ -55,7 +55,7 @@ {{range .attachments}} <tr> <td> - <a target="_blank" href="{{AppSubURL}}/attachments/{{.UUID}}" rel="nofollow">{{.Name}}</a> + <a target="_blank" rel="noopener noreferrer" href="{{AppSubURL}}/attachments/{{.UUID}}" rel="nofollow">{{.Name}}</a> <a class="ui text red right delete-attachment-button" href="#"><i class="octicon octicon-x" data-uuid="{{.UUID}}"></i></a> <input name="files" type="hidden" value="{{.UUID}}"> </td> |