feat: check malformed domain names

This commit is contained in:
Maël Gangloff
2025-10-16 14:16:58 +02:00
parent a20344816c
commit a143039925
8 changed files with 77 additions and 32 deletions

View File

@@ -6,6 +6,6 @@ class MalformedDomainException extends \Exception
{
public static function fromDomain(string $ldhName): self
{
return new self("Domain name ($ldhName) must contain at least one dot");
return new self("Malformed domain name ($ldhName)");
}
}