mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-06-08 16:12:43 -04:00
Add rel="noopener noreferrer" to external links in LoginPage
Prevents the linked page from accessing `window.opener` and stops the referring URL from being sent in the `Referer` header.
This commit is contained in:
parent
8dff2712a1
commit
059073a5db
1 changed files with 3 additions and 1 deletions
|
|
@ -175,7 +175,8 @@ class LoginPage extends HtmlDocument
|
|||
'href' => 'https://www.facebook.com/icinga',
|
||||
'target' => '_blank',
|
||||
'title' => $this->translate('Icinga on Facebook'),
|
||||
'aria-label' => $this->translate('Icinga on Facebook')
|
||||
'aria-label' => $this->translate('Icinga on Facebook'),
|
||||
'rel' => 'noopener noreferrer'
|
||||
]),
|
||||
HtmlElement::create('i', Attributes::create([
|
||||
'class' => 'icon-facebook-squared',
|
||||
|
|
@ -194,6 +195,7 @@ class LoginPage extends HtmlDocument
|
|||
'target' => '_blank',
|
||||
'title' => $this->translate('Icinga on GitHub'),
|
||||
'aria-label' => $this->translate('Icinga on GitHub'),
|
||||
'rel' => 'noopener noreferrer'
|
||||
]),
|
||||
HtmlElement::create('i', Attributes::create([
|
||||
'class' => 'icon-github-circled',
|
||||
|
|
|
|||
Loading…
Reference in a new issue