[wp-trac] [WordPress Trac] #44616: WordPress core registration email field not EAI / IDN (Internationalised Domain Name) compatible

WordPress Trac noreply at wordpress.org
Fri Jul 20 07:13:52 UTC 2018


#44616: WordPress core registration email field not EAI / IDN (Internationalised
Domain Name) compatible
------------------------------------+-----------------------------
 Reporter:  belikewata              |      Owner:  (none)
     Type:  defect (bug)            |     Status:  new
 Priority:  normal                  |  Milestone:  Awaiting Review
Component:  Login and Registration  |    Version:  4.9.7
 Severity:  major                   |   Keywords:
  Focuses:                          |
------------------------------------+-----------------------------
 Using latest WordPress 4.9.7, I'm unable to create users using IDN email
 addresses in the email field.  WP's email field invalidates any idn
 characters - not allowing it to submit.   Checking against the UA use case
 examples (https://uasg.tech/wp-content/uploads/2017/05/UASG004-Use-Cases-
 for-UA-Readiness-Evaluation-2017-04-17.pdf), ascii-only variations
 (long/short) strings are accepted however any combination that includes
 idn/unicode will not validate.  Punycode email addresses and domain names
 will not validate as well.

 Test case:
 - fails validation: public registration using idn at idn.idn (测试5@普遍接受-
 测试.世界)
 - fails validation: public registration using ascii at punicode.punicode
 (info5 at --mx3en63eh0dl3oga9641eha396j.xn--rhqv96g)
 - fails validation: public registration using ascii at idn.ascii (info3
 @普遍接受-测试.top )

 Interestingly in the backend if I use the admin account to add users,
 validation results are different:
 - passes validation, user created: backend registration using
 ascii at idn.idn (info5@普遍接受-测试.世界 ).  In this case, WP converts the
 IDN string and stores the email as punycode automatically (info5 at xn----
 f38am99bqvcd5liy1cxsg.xn--rhqv96g)

 I searched the current tickets on this topic but couldn't find it so if
 there is already a ticket on IDN/EAI please help me refer to it.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44616>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list