Skip to content

Commit

Permalink
fix: remarks field in RDAP response
Browse files Browse the repository at this point in the history
  • Loading branch information
maelgangloff committed Dec 28, 2024
1 parent ee4d117 commit 9f73f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/RDAPService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}

Expand Down

0 comments on commit 9f73f50

Please sign in to comment.