[buddypress-trac] [BuddyPress Trac] #7767: user_name on registration without space bar Then need validation

buddypress-trac noreply at wordpress.org
Thu Apr 26 06:35:57 UTC 2018


#7767: user_name on registration without space bar Then need validation
--------------------------+-----------------------------
 Reporter:  ravipatel     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  high          |  Milestone:  Awaiting Review
Component:  Core          |    Version:  2.9.4
 Severity:  major         |   Keywords:
--------------------------+-----------------------------
 This one buddy press bug :

 wordpress : 4.9.5
 Buddypress : 2.9.4

 On registration time same like default wordpress username allowed with
 space but buddy presss remove a space in code.

 {{{

 \plugins\buddypress\bp-members\bp-members-functions.php Line : 1852

 $user_login     = preg_replace( '/\s+/', '', sanitize_user( $user_login,
 true ) );
 }}}

 https://buddydev.com/buddypress/prevent-spaces-in-wordpressbuddypress-
 usernames/


 In short without validate filed why removed a space from username because
 of after registration user don’t know this one removed a space.

 Example :
 Ravi Patel (registration input time)
 After registration this one display now in backend RaviPatel.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7767>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list