summaryrefslogtreecommitdiffstats
path: root/templates/base
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/base
parent4b654ad17f50a441049c208e5011d0799522592b (diff)
downloadgitea-51ba3df5ff5b58a77c31bcda9a8efd3cdafa1d99.tar.gz
gitea-51ba3df5ff5b58a77c31bcda9a8efd3cdafa1d99.zip
Add `noreferrer` to rel='noopener` for <a> tags (#4328)
Diffstat (limited to 'templates/base')
-rw-r--r--templates/base/footer.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl
index 3ad5358d41..ed4e75ffc9 100644
--- a/templates/base/footer.tmpl
+++ b/templates/base/footer.tmpl
@@ -17,7 +17,7 @@
</div>
<div class="ui right links">
{{if .ShowFooterBranding}}
- <a target="_blank" rel="noopener" href="https://github.com/go-gitea/gitea"><i class="fa fa-github-square"></i><span class="sr-only">GitHub</span></a>
+ <a target="_blank" rel="noopener noreferrer" href="https://github.com/go-gitea/gitea"><i class="fa fa-github-square"></i><span class="sr-only">GitHub</span></a>
{{end}}
<div class="ui language bottom floating slide up dropdown link item">
<i class="world icon"></i>
@@ -30,7 +30,7 @@
</div>
<a href="{{AppSubUrl}}/vendor/librejs.html" data-jslicense="1">JavaScript licenses</a>
{{if .EnableSwaggerEndpoint}}<a href="{{AppSubUrl}}/api/swagger">API</a>{{end}}
- <a target="_blank" rel="noopener" href="https://gitea.io">{{.i18n.Tr "website"}}</a>
+ <a target="_blank" rel="noopener noreferrer" href="https://gitea.io">{{.i18n.Tr "website"}}</a>
{{if (or .ShowFooterVersion .PageIsAdmin)}}<span class="version">{{GoVer}}</span>{{end}}
</div>
</div>