[wp-trac] [WordPress Trac] #17433: localhost is not accepted as email domain
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 10 23:05:07 UTC 2011
#17433: localhost is not accepted as email domain
--------------------------+------------------------------
Reporter: sanvila | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 3.2
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Changes (by kurtpayne):
* cc: kurtpayne (added)
* keywords: needs-patch => has-patch
Comment:
This patch will allow dotless e-mail domains as long as the server can
resolve the domain via a DNS lookup. It should allow "localhost" and
other development domains, but prevent "fakedomain" (unless fakedomain
resolves on your network).
If DNS times out on an invalid dotless domain, there may be a delay of up
to 2 seconds. This should be encountered rarely, but, due to the stacking
of sanitize_email() and is_email() may be encountered twice in a row.
Thoughts about this approach?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17433#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list