From 9f73f5038da65303e4a0f0216095c9045c9dd4da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Sat, 28 Dec 2024 19:41:14 +0100 Subject: [PATCH] fix: remarks field in RDAP response --- src/Service/RDAPService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/RDAPService.php b/src/Service/RDAPService.php index aa896c5..1802751 100644 --- a/src/Service/RDAPService.php +++ b/src/Service/RDAPService.php @@ -509,7 +509,7 @@ private function registerEntity(array $rdapEntity, array $roles, string $domain) $entity->setHandle($rdapEntity['handle']); - if (array_key_exists('remarks', $rdapEntity) && is_array($rdapEntity['remarks'])) { + if (array_key_exists('remarks', $rdapEntity) && is_array($rdapEntity['remarks']) && !in_array($rdapEntity['handle'], self::IANA_RESERVED_IDS)) { $entity->setRemarks($rdapEntity['remarks']); }