[wp-trac] [WordPress Trac] #52529: Non-slashed $old_user_data->user_email in wp_insert_user causes user_activation_key to be unset

WordPress Trac noreply at wordpress.org
Fri Sep 29 00:54:34 UTC 2023


#52529: Non-slashed $old_user_data->user_email in wp_insert_user causes
user_activation_key to be unset
----------------------------------------+---------------------
 Reporter:  emirpprime                  |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  6.4
Component:  Login and Registration      |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+---------------------
Changes (by rajinsharwar):

 * keywords:  has-patch needs-dev-note needs-unit-tests => has-patch needs-
     unit-tests


Comment:

 As per the discussions on the Bugs Scrub of today (09/28/2023), the
 current patch was proposed to be tested if it was working correctly, and
 if it was working fine with the current upstream.

 After testing the current patch, I found that the patch is working as
 expected, and I am able to reset the password for a user who has an
 apostrophe in his/her email.

 @oglekler @mukesh27 Do you think we need unit tests for this scenario?

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


More information about the wp-trac mailing list