[wp-trac] [WordPress Trac] #55413: on user save apostrophes cause wp_mail error

WordPress Trac noreply at wordpress.org
Thu Mar 17 16:22:40 UTC 2022


#55413: on user save apostrophes cause wp_mail error
----------------------------+-----------------------------
 Reporter:  dg12345         |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Users           |    Version:  5.9.2
 Severity:  normal          |   Keywords:  needs-patch
  Focuses:  administration  |
----------------------------+-----------------------------
 This is a follow-up to #18039.

 On user save from the admin the input is not unslashed and so the
 1. wordpress thinks that the email has changed, has it is compared against
 a unslashed value
 2. it uses the slashed input which isn't a valid email address to send the
 email was changed message

 Can we unslash the email input in the wp_insert_user and wp_update_user
 functions

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55413>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list