mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 17:55:42 +00:00
fix: sTLDs are listed in ICANN's gTLD list
This commit is contained in:
parent
fdb29903b1
commit
30ccc26923
@ -794,7 +794,7 @@ readonly class RDAPService
|
|||||||
|
|
||||||
private function getTldType(string $tld): ?TldType
|
private function getTldType(string $tld): ?TldType
|
||||||
{
|
{
|
||||||
if (in_array($tld, self::ISO_TLD_EXCEPTION)) {
|
if (in_array(strtolower($tld), self::ISO_TLD_EXCEPTION)) {
|
||||||
return TldType::ccTLD;
|
return TldType::ccTLD;
|
||||||
}
|
}
|
||||||
if (in_array(strtolower($tld), self::INFRA_TLD)) {
|
if (in_array(strtolower($tld), self::INFRA_TLD)) {
|
||||||
@ -844,8 +844,8 @@ readonly class RDAPService
|
|||||||
$gtTldEntity
|
$gtTldEntity
|
||||||
->setContractTerminated($gTld['contractTerminated'])
|
->setContractTerminated($gTld['contractTerminated'])
|
||||||
->setRegistryOperator($gTld['registryOperator'])
|
->setRegistryOperator($gTld['registryOperator'])
|
||||||
->setSpecification13($gTld['specification13'])
|
->setSpecification13($gTld['specification13']);
|
||||||
->setType(TldType::gTLD);
|
// NOTICE: sTLDs are listed in ICANN's gTLD list
|
||||||
|
|
||||||
if (null !== $gTld['removalDate']) {
|
if (null !== $gTld['removalDate']) {
|
||||||
$gtTldEntity->setRemovalDate(new \DateTimeImmutable($gTld['removalDate']));
|
$gtTldEntity->setRemovalDate(new \DateTimeImmutable($gTld['removalDate']));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user