[wp-trac] [WordPress Trac] #62551: search field (users) looses AT sign in field after editting profile

WordPress Trac noreply at wordpress.org
Sat Nov 23 17:10:24 UTC 2024


#62551: search field (users) looses AT sign in field after editting profile
-------------------------------+------------------------------
 Reporter:  PcTevree           |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Users              |     Version:  6.7.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  administration
-------------------------------+------------------------------

Comment (by siliconforks):

 Replying to [comment:1 knutsp]:
 > I just tested by searching for a user with en email adddress, edited,
 saved and went back to the search results using the backlink.
 >
 > Ths full email address, including the `@`, still appeared in the search
 field.

 That's odd, I tested it and was able to reproduce the issue easily (using
 the latest trunk version of WordPress).

 Are you running an older version of WordPress?  I suspect this issue may
 have been introduced a few months ago (in r58069).

 See [https://github.com/WordPress/wordpress-
 develop/blob/aa2b4fd6eded4e229335765c6f87ffc2353f5638/src/wp-admin/user-
 edit.php#L17 this line] which will strip out any %-encoded characters,
 including the `@` symbol (encoded as `%40`).

 {{{#!php
 $wp_http_referer = ! empty( $_REQUEST['wp_http_referer'] ) ?
 sanitize_text_field( $_REQUEST['wp_http_referer'] ) : '';
 }}}

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


More information about the wp-trac mailing list