[wp-trac] [WordPress Trac] #34889: wp_check_password() and issue with trailing space

WordPress Trac noreply at wordpress.org
Mon Aug 21 12:58:33 UTC 2023


#34889: wp_check_password() and issue with trailing space
-------------------------------------------------+-------------------------
 Reporter:  jperlman                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:
Component:  Login and Registration               |     Version:  4.1.1
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch needs-testing needs-unit-  |     Focuses:
  tests dev-feedback 2nd-opinion                 |  administration
-------------------------------------------------+-------------------------
Changes (by rajinsharwar):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 Hi @tyxla @adrianosilvaferreira @jperlman, following up on this old
 ticket.

 Currently, the password is trimmed for leading or trailing spaces when
 creating a user, and also when logging a user. The only time spaces are
 considered in a password is when there are spaces within the password.

 For example, if my Password is: "Test Password", then, the space won't be
 trimmed. I will be needing to enter the password exactly with an equal
 number of spaces. But, if the password were "TestPassword  ", then, I will
 be able to log in with/without those spaces at the end.

 I hope this clarifies. As this issue is already fixed, let's close this
 ticket for now. Thanks a lot for contributing here.

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


More information about the wp-trac mailing list