[wp-trac] [WordPress Trac] #31992: Unicode Email Addresses

WordPress Trac noreply at wordpress.org
Wed Aug 30 01:11:20 UTC 2023


#31992: Unicode Email Addresses
-------------------------------------------------+-------------------------
 Reporter:  ysalame                              |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:
Component:  Formatting                           |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-testing-info has-patch has-      |     Focuses:
  screenshots                                    |
-------------------------------------------------+-------------------------
Changes (by ironprogrammer):

 * keywords:  is-email => has-testing-info has-patch has-screenshots


Comment:

 == Test Report

 Patch tested:
 https://core.trac.wordpress.org/attachment/ticket/31992/31992-icann.patch

 === Steps to Test
 1. In WP admin, navigate to ''Users > Add New''.
 2. Enter a Username in standard ASCII characters (no need to confuse with
 related #5918).
 3. Enter a valid Email with extended ASCII or unicode characters, e.g.:
 `grå@grå.org`.
 4. 🐞 Observe error returned: `Error: The email address is not correct.`

 === Expected Results
 - ✅ An email with extended ASCII or unicode characters should be
 accepted.

 === Environment
 - Hardware: MacBook Pro Apple M1 Pro
 - OS: macOS 13.5
 - Browser: Safari 16.6
 - Server: nginx/1.25.2
 - PHP: 8.2.9
 - Database: SQLite
 - WordPress: 6.4-alpha-56267-src

 === Actual Results
 - ✅ The Add New User form accepts the email with special characters.
 - ❌ The email stored in the database (and subsequently displayed on the
 page) has special characters stripped out. E.g. (also see Figure 1):
  - `grå@grå.org` => `gr at gr.org`
  - `测试5@普遍接受-测试.世界` => `` (empty!)

 === Supplemental Artifacts
 ''Figure 1: Emails stored in database from test samples.''
 [[Image(https://cldup.com/N6nKk0qLuA.thumb.png, 300px)]]

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


More information about the wp-trac mailing list