Make WordPress Core

Opened 12 months ago

Last modified 12 months ago

#59485 new defect (bug)

Invalid username

Reported by: rinkalpagdar's profile rinkalpagdar Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.3.1
Component: Users Keywords: has-patch
Focuses: Cc:

Description

Steps to reproduce this issue in the latest WordPress.
=>Go to WordPress admin
=>Register new user with username dot "."
=>It will create a user with username dot and blank user_nicename

I have provide solution here.
Thanks!!

Attachments (1)

59485.patch (678 bytes) - added by rinkalpagdar 12 months ago.

Download all attachments as: .zip

Change History (2)

#1 @krupalpanchal
12 months ago

Hi There

Welcome to Core Trac.

Nice catch on this issue. But with your patch, it looks like sanitize_title is not enough to validate the username. Also, we should keep the username length within some range.

For now, there is a validation of username length of more than 60. Let's see other developer's suggestions to improve this.

Note: See TracTickets for help on using tickets.