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/base | |
parent | 4b654ad17f50a441049c208e5011d0799522592b (diff) | |
download | gitea-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.tmpl | 4 |
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> |