[wp-trac] [WordPress Trac] #24487: is_email() does not recognize IDN domains

WordPress Trac noreply at wordpress.org
Mon Nov 7 05:52:06 UTC 2016


#24487: is_email() does not recognize IDN domains
--------------------------------+-----------------------------
 Reporter:  OlegCorner          |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Future Release
Component:  Formatting          |     Version:  3.5.1
 Severity:  minor               |  Resolution:
 Keywords:  has-patch is-email  |     Focuses:
--------------------------------+-----------------------------

Comment (by rmccue):

 It's worth mentioning that WordPress now includes an IDN parser inside
 Requests: `Requests_IDNAEncoder`. We could convert IDN domains to their
 ASCII representation, and if that fails, the domain is invalid. If it
 succeeds, it can then go through the regular email checks.

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


More information about the wp-trac mailing list