aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/view_content.tmpl
diff options
context:
space:
mode:
authorcezar97 <cezar97@protonmail.com>2018-07-04 02:52:36 +0300
committertechknowlogick <techknowlogick@users.noreply.github.com>2018-07-03 19:52:36 -0400
commit51ba3df5ff5b58a77c31bcda9a8efd3cdafa1d99 (patch)
treecda666fa4f35b1b7e57f8e734764cccd4988a7fe /templates/repo/issue/view_content.tmpl
parent4b654ad17f50a441049c208e5011d0799522592b (diff)
downloadgitea-51ba3df5ff5b58a77c31bcda9a8efd3cdafa1d99.tar.gz
gitea-51ba3df5ff5b58a77c31bcda9a8efd3cdafa1d99.zip
Add `noreferrer` to rel='noopener` for <a> tags (#4328)
Diffstat (limited to 'templates/repo/issue/view_content.tmpl')
-rw-r--r--templates/repo/issue/view_content.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl
index 5271fcb179..6edc34207b 100644
--- a/templates/repo/issue/view_content.tmpl
+++ b/templates/repo/issue/view_content.tmpl
@@ -48,7 +48,7 @@
<div class="ui bottom attached segment">
<div class="ui small images">
{{range .Issue.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}}