[wp-trac] [WordPress Trac] #43393: get_user_by can return wrong user info

WordPress Trac noreply at wordpress.org
Fri Feb 23 14:49:56 UTC 2018


#43393: get_user_by can return wrong user info
--------------------------+------------------------------
 Reporter:  hberberoglu   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  performance
--------------------------+------------------------------
Changes (by ocean90):

 * version:  4.9.4 =>


Comment:

 This is actually a bug in the drop-in caused by this line:
 `return preg_replace('/\s+/', '', WP_CACHE_KEY_SALT .
 "$prefix$group:$key"); `.

 Using a placeholder in cache keys rather than simply stripping out spaces
 would solve this.

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


More information about the wp-trac mailing list