[wp-trac] [WordPress Trac] #44672: REST-API: invalid email on lowercase/uppercase change

WordPress Trac noreply at wordpress.org
Thu Aug 9 22:35:11 UTC 2018


#44672: REST-API: invalid email on lowercase/uppercase change
--------------------------------------+---------------------
 Reporter:  fuchsws                   |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  5.0
Component:  REST API                  |     Version:  4.9.7
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------
Changes (by rachelbaker):

 * keywords:  needs-patch needs-unit-tests => has-patch has-unit-tests
 * milestone:  Awaiting Review => 5.0


Comment:

 In [attachment:"44672.diff"] I modified the comparison that checks if a
 provided user email address should be allowed to change in a PUT request
 to transform the comparison check of current email address <> provided
 value to always check lowercase strings.

 This feels a bit hacky, but will result in allowing a user to change:
 Editor at Example.com --> editor at example.com successfully matching WP-admin.

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


More information about the wp-trac mailing list