[wp-trac] [WordPress Trac] #18039: Allow apostrophes in email addresses when accounts are added via Dashboard

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 8 16:36:55 UTC 2011


#18039: Allow apostrophes in email addresses when accounts are added via Dashboard
--------------------------+------------------------------------
 Reporter:  boonebgorges  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Users         |    Version:  3.2
 Severity:  minor         |   Keywords:  has-patch dev-feedback
--------------------------+------------------------------------
 See #4616.

 Currently it's not possible to add a user with an apostrophe in his email
 address in any of the following ways:
 - Dashboard > Add User (non-MS)
 - Dashboard > Add User > Add Existing User (MS)
 - Dashboard > Add User > Add New User (MS)
 With existing users, you get a 'user not found' error. Otherwise you get
 an error about invalid email addresses.

 This is inconsistent with WP's basic email address behavior, which allows
 apostrophes in email addresses.

 For the most part, the problem is simply that the value of 'email' in the
 $_POST data must be stripslashed. In a few cases, adjustments had to be
 made to the way that email addresses are escaped, to allow for the '
 character (see esc_email()).

 See attached patch.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18039>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list