Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Staab <markus.staab@redaxo.de>2017-10-19 13:16:04 +0300
committerMarkus Staab <markus.staab@redaxo.de>2017-10-19 13:16:04 +0300
commitdb34b59238846e5ec046a456b4f76649321571d1 (patch)
tree3efe5a2c81888f6440c43ba6450998f6434ba7ea /apps/theming/tests
parent8e25df9690a4d953721dcdc8e61038b332774a10 (diff)
Prevent XSS in links which open a new browser window
Diffstat (limited to 'apps/theming/tests')
-rw-r--r--apps/theming/tests/ThemingDefaultsTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/theming/tests/ThemingDefaultsTest.php b/apps/theming/tests/ThemingDefaultsTest.php
index abd85a612c9..6fbf3a2529d 100644
--- a/apps/theming/tests/ThemingDefaultsTest.php
+++ b/apps/theming/tests/ThemingDefaultsTest.php
@@ -217,7 +217,7 @@ class ThemingDefaultsTest extends TestCase {
['theming', 'slogan', $this->defaults->getSlogan(), 'Slogan'],
]);
- $this->assertEquals('<a href="url" target="_blank" rel="noreferrer">Name</a> – Slogan', $this->template->getShortFooter());
+ $this->assertEquals('<a href="url" target="_blank" rel="noreferrer noopener">Name</a> – Slogan', $this->template->getShortFooter());
}
public function testGetShortFooterEmptySlogan() {
@@ -230,7 +230,7 @@ class ThemingDefaultsTest extends TestCase {
['theming', 'slogan', $this->defaults->getSlogan(), ''],
]);
- $this->assertEquals('<a href="url" target="_blank" rel="noreferrer">Name</a>', $this->template->getShortFooter());
+ $this->assertEquals('<a href="url" target="_blank" rel="noreferrer noopener">Name</a>', $this->template->getShortFooter());
}
public function testgetColorPrimaryWithDefault() {