fix: sTLDs are listed in ICANN's gTLD list

This commit is contained in:
Maël Gangloff 2025-08-27 14:47:33 +02:00
parent fdb29903b1
commit 30ccc26923
No known key found for this signature in database
GPG Key ID: 11FDC81C24A7F629

View File

@ -794,7 +794,7 @@ readonly class RDAPService
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;
}
if (in_array(strtolower($tld), self::INFRA_TLD)) {
@ -844,8 +844,8 @@ readonly class RDAPService
$gtTldEntity
->setContractTerminated($gTld['contractTerminated'])
->setRegistryOperator($gTld['registryOperator'])
->setSpecification13($gTld['specification13'])
->setType(TldType::gTLD);
->setSpecification13($gTld['specification13']);
// NOTICE: sTLDs are listed in ICANN's gTLD list
if (null !== $gTld['removalDate']) {
$gtTldEntity->setRemovalDate(new \DateTimeImmutable($gTld['removalDate']));