Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-7481 now.

DNS lookup for e-mail validation will always succeed if a default domain with a wildcard is set (fix completed in vcs)

A bug in includes/functions.php will cause all lookups to succeed if a domain with a wildcard (*.serverdomain.com) is configured as the default/search domain in the operating system configuration.

As a result, a lookup for userdomain.com will return successful, as userdomain.com.serverdomain.com would be valid due to the wildcard. The wildcard configuration is not uncommon.

This can be fixed easily without harm by suffixing a period (dot) to the end of the host as in the below code-snippet. Adding this dot ignores any default lookup domain.

### includes/functions.php ###

else if (function_exists('checkdnsrr'))
{
return (checkdnsrr($host.'.', $type)) ? true : false;
}

Comments / History

Linked ticket with changeset: r8675

Action performed by Anonymous (I am too lazy to register) on Jun 28th 2008, 17:07

Assigned ticket to user "Acyd Burn"

Action performed by Acyd Burn (Server Manager) on Jun 28th 2008, 17:09

Changed ticket status from "New" to "Fix completed in SVN"

Action performed by Acyd Burn (Server Manager) on Jun 28th 2008, 17:09

Ticket details

Related SVN changesets