1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Add noreferrer to rel='noopener` for <a> tags (#4328)

This commit is contained in:
cezar97
2018-07-04 02:52:36 +03:00
committed by techknowlogick
parent 4b654ad17f
commit 51ba3df5ff
17 changed files with 59 additions and 59 deletions

View File

@@ -52,7 +52,7 @@
<div class="ui bottom attached segment">
<div class="ui small images">
{{range .Attachments}}
<a target="_blank" rel="noopener" href="{{AppSubUrl}}/attachments/{{.UUID}}">
<a target="_blank" rel="noopener noreferrer" href="{{AppSubUrl}}/attachments/{{.UUID}}">
{{if FilenameIsImage .Name}}
<img class="ui image" src="{{AppSubUrl}}/attachments/{{.UUID}}" title='{{$.i18n.Tr "repo.issues.attachment.open_tab" .Name}}'>
{{else}}