diff --git a/core/tests/Drupal/Tests/Component/Utility/XssTest.php b/core/tests/Drupal/Tests/Component/Utility/XssTest.php index c61beb7..8b6434b 100644 --- a/core/tests/Drupal/Tests/Component/Utility/XssTest.php +++ b/core/tests/Drupal/Tests/Component/Utility/XssTest.php @@ -50,7 +50,6 @@ protected function setUp() { UrlValidator::setAllowedProtocols($allowed_protocols); } - /** * Tests limiting allowed tags and XSS prevention. * @@ -239,9 +238,9 @@ public function testFilterXSS() { */ public function testInvalidMultiByte() { $text = Xss::filter("Foo\xC0barbaz"); - $this->assertEquals($text, '', 'filter_xss() rejects invalid sequence "Foo\xC0barbaz"'); + $this->assertEquals($text, '', 'filter_xss() accepted invalid sequence "Foo\xC0barbaz"'); $text = Xss::filter("Fooÿñ"); - $this->assertEquals($text, "Fooÿñ", 'filter_xss() accepts valid sequence Fooÿñ'); + $this->assertEquals($text, "Fooÿñ", 'filter_xss() rejects valid sequence Fooÿñ'); } /**