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

WordPress Trac noreply at wordpress.org
Fri Jan 17 09:21:38 UTC 2014


#17433: localhost is not accepted as email domain
----------------------------------------+-----------------------------
 Reporter:  sanvila                     |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  Formatting                  |     Version:  3.2
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |
----------------------------------------+-----------------------------
Changes (by nacin):

 * keywords:  has-patch => has-patch needs-unit-tests
 * milestone:  Awaiting Review => Future Release


Comment:

 Switching to filter_var() is a major design decision. We can move faster
 than PHP versions; filter_var() has had a lot of bugs over the years that
 don't get fixed until later versions of PHP if at all; etc. We need to
 study this carefully. And, yes, OMG it needs unit tests, and lots of them.
 The worst thing that we could do moving to filter_var() is regressing in
 other areas, as unlikely it may be here.

 Simply whitelisting 'localhost' seems like a good in-the-meantime
 solution.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/17433#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list