From c3c7de1902991b78db5388c62130c4a65f99856e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Fri, 27 Dec 2024 22:29:35 +0100 Subject: [PATCH] fix: id field may be empty 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 21bfaa5..8e9a25a 100644 --- a/src/Service/RDAPService.php +++ b/src/Service/RDAPService.php @@ -476,7 +476,7 @@ readonly class RDAPService $isIANAid = false; if (array_key_exists('publicIds', $rdapEntity)) { foreach ($rdapEntity['publicIds'] as $publicId) { - if ('IANA Registrar ID' === $publicId['type'] && array_key_exists('identifier', $publicId)) { + if ('IANA Registrar ID' === $publicId['type'] && array_key_exists('identifier', $publicId) && '' !== $publicId['identifier']) { $rdapEntity['handle'] = $publicId['identifier']; $isIANAid = true; break;