-
-
Notifications
You must be signed in to change notification settings - Fork 290
Closed
Milestone
Description
hi!
in dns.inc.php, function is_valid_hostname_fqdn()
$hostname = preg_replace("/\.$/","",$hostname);
if (strlen($hostname) > 255) {
error(ERR_DNS_HN_TOO_LONG);
return false;
}i think that the length check is wrong because 255 includes the trailing dot.
please see
http://en.wikipedia.org/wiki/Domain_name#Domain_name_syntax and
http://en.wikipedia.org/wiki/Domain_name#cite_note-3
thank you,
raoul
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels