From 5b3ac91f7ea2ee066d7ed5071b391e3b4823a18b Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Fri, 6 Dec 2024 12:16:22 +0100 Subject: [PATCH] Ensure that a prefixed newline is also rejected --- tests/library/EngineBlock/Test/Validator/UrnTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/library/EngineBlock/Test/Validator/UrnTest.php b/tests/library/EngineBlock/Test/Validator/UrnTest.php index ce307fd4e..5ed4a8758 100644 --- a/tests/library/EngineBlock/Test/Validator/UrnTest.php +++ b/tests/library/EngineBlock/Test/Validator/UrnTest.php @@ -68,6 +68,7 @@ public function invalidUrnProvider() yield ['urn:org.openconext.licenseInfo']; yield ['foo:bar:baz']; yield ['urn:f:bar']; + yield ["\nurn:mace:dir:attribute-def:eduPersonPrincipalName"]; yield ["urn:mace:dir:attribute-def:eduPersonPrincipalName\n"]; yield [' urn:collab:person:example.org:jdoe']; yield ['urn:collab:person:example.org:jdoe '];