mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
Merge branch 'master' into feat/epp-protocol
This commit is contained in:
@@ -173,7 +173,7 @@ readonly class RDAPService
|
||||
private function getTld(string $domain): Tld
|
||||
{
|
||||
if (!str_contains($domain, '.')) {
|
||||
$tldEntity = $this->tldRepository->findOneBy(['tld' => '']);
|
||||
$tldEntity = $this->tldRepository->findOneBy(['tld' => '.']);
|
||||
|
||||
if (null == $tldEntity) {
|
||||
throw new NotFoundHttpException("The requested TLD $domain is not yet supported, please try again with another one");
|
||||
|
||||
Reference in New Issue
Block a user