[wp-trac] [WordPress Trac] #44690: Username should not accept space
WordPress Trac
noreply at wordpress.org
Wed Aug 1 11:19:00 UTC 2018
#44690: Username should not accept space
------------------------------+-----------------------------
Reporter: subrataemfluence | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: trunk
Severity: normal | Keywords: 2nd-opinion
Focuses: |
------------------------------+-----------------------------
The `username` field accepts `space`, not leading or trailing ones though.
Space is usually not in the list of accepted characters.
I am not sure if it is there in purpose. Ideally it should not accept this
character.
`Username` also accepts `@`, which is not an issue. But the problem starts
when the username looks like an email address! When sending verification
requests for Export and Erase private data the issue can be noticed.
However, if `username` has to accept `@`, WordPress should first check
whether it is validating email address pattern. If it does, I think that
should be reported rather than allowing it to get saved.
I explained the above issue in #44683.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44690>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list