Skip to content

When using IDN domain names, it is easy to reach the limit and throw exception Regex::DOMAIN_OR_SUBDOMAIN #1

@xiaohuilam

Description

@xiaohuilam

if (!preg_match(Regex::DOMAIN_OR_SUBDOMAIN, $hostName)) {
throw new DnsHandlerException(
$hostnameErrorInfo . ' format! (characters "A-Za-z0-9.-", max length 63 chars allowed)',
DnsHandlerException::HOSTNAME_FORMAT_INVALID
);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions