diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-11-08 18:55:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-08 18:55:35 +0100 |
commit | 8c915baa3438c26454b7614ea03d4dadabcda5d5 (patch) | |
tree | 9b800f157cae8c4cd841fdf8e757c3779300224d /lib | |
parent | d948626736e65051dfe1affc562710bfedf2eb4a (diff) | |
parent | db34b59238846e5ec046a456b4f76649321571d1 (diff) | |
download | nextcloud-server-8c915baa3438c26454b7614ea03d4dadabcda5d5.tar.gz nextcloud-server-8c915baa3438c26454b7614ea03d4dadabcda5d5.zip |
Merge pull request #6788 from staabm/master
Prevent XSS in links which open a new browser window
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Installer.php | 2 | ||||
-rw-r--r-- | lib/private/legacy/defaults.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Installer.php b/lib/private/Installer.php index be029c2bfd7..e754f28455b 100644 --- a/lib/private/Installer.php +++ b/lib/private/Installer.php @@ -542,7 +542,7 @@ class Installer { } catch (TableExistsException $e) { throw new HintException( 'Failed to enable app ' . $app, - 'Please ask for help via one of our <a href="https://nextcloud.com/support/" target="_blank" rel="noreferrer">support channels</a>.', + 'Please ask for help via one of our <a href="https://nextcloud.com/support/" target="_blank" rel="noreferrer noopener">support channels</a>.', 0, $e ); } diff --git a/lib/private/legacy/defaults.php b/lib/private/legacy/defaults.php index 184c820e7c5..8b5cef3643e 100644 --- a/lib/private/legacy/defaults.php +++ b/lib/private/legacy/defaults.php @@ -239,7 +239,7 @@ class OC_Defaults { $footer = $this->theme->getShortFooter(); } else { $footer = '<a href="'. $this->getBaseUrl() . '" target="_blank"' . - ' rel="noreferrer">' .$this->getEntity() . '</a>'. + ' rel="noreferrer noopener">' .$this->getEntity() . '</a>'. ' – ' . $this->getSlogan(); } |