[wp-trac] [WordPress Trac] #38744: Can't login with email address that contains an apostrophe

WordPress Trac noreply at wordpress.org
Sat Apr 20 15:16:02 UTC 2019

#38744: Can't login with email address that contains an apostrophe
 Reporter:  wpkuf                                |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Login and Registration               |     Version:
 Severity:  normal                               |  Resolution:  worksforme
 Keywords:  good-first-bug has-patch needs-      |     Focuses:
  testing needs-unit-tests                       |
Changes (by santilinwp):

 * keywords:  needs-patch good-first-bug => good-first-bug has-patch needs-
     testing needs-unit-tests
 * status:  new => closed
 * resolution:   => worksforme


 I have found the using of `$_POST['user_login']` without `wp_unslash` in a
 number of places, so I have gone through all the uses I could find and
 fixed it.

 I have not found any tests of the login process as I am a newbie. I would
 appreciate if someone could point me out to them.

 I have attached the diff with three changes. After applying them, I can
 now login with an email name with an `'` in it.

Ticket URL: <https://core.trac.wordpress.org/ticket/38744#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list