[wp-trac] [WordPress Trac] #17433: localhost is not accepted as email domain

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 12 00:00:52 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     |
--------------------------+------------------------------

Comment (by kurtpayne):

 @westi I was ready to disagree and defend "user at localhost" as a valid
 address, but I dug into this a bit more and found this post on
 [http://stackoverflow.com/questions/3406473/why-does-filter-varemail-
 filter-validate-email-allow-testtest stackoverflow.com] which changed my
 mind.  The php developers who wrote the e-mail filter don't allow short
 domains because only FQDNs are allowed in SMTP servers according to RFC
 5321.

 Submitting patch 17433-2.diff to switch to email code to filter_var() as
 you and @toscho suggested.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17433#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list