mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-23 12:45:36 +00:00
fix: do not record event history if it is an IANA Registrar ID
This commit is contained in:
parent
149b208399
commit
18d42993e3
@ -473,10 +473,12 @@ readonly class RDAPService
|
|||||||
/*
|
/*
|
||||||
* If the RDAP server transmits the entity's IANA number, it is used as a priority to identify the entity
|
* If the RDAP server transmits the entity's IANA number, it is used as a priority to identify the entity
|
||||||
*/
|
*/
|
||||||
|
$isIANAid = false;
|
||||||
if (array_key_exists('publicIds', $rdapEntity)) {
|
if (array_key_exists('publicIds', $rdapEntity)) {
|
||||||
foreach ($rdapEntity['publicIds'] as $publicId) {
|
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)) {
|
||||||
$rdapEntity['handle'] = $publicId['identifier'];
|
$rdapEntity['handle'] = $publicId['identifier'];
|
||||||
|
$isIANAid = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -522,7 +524,7 @@ readonly class RDAPService
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!array_key_exists('events', $rdapEntity) || in_array($rdapEntity['handle'], self::ENTITY_IANA_RESERVED_IDS)) {
|
if ($isIANAid || !array_key_exists('events', $rdapEntity) || in_array($rdapEntity['handle'], self::ENTITY_IANA_RESERVED_IDS)) {
|
||||||
return $entity;
|
return $entity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user