[wp-trac] [WordPress Trac] #23430: sanitize_user() disallows + in usernames causes problem for email as username

WordPress Trac noreply at wordpress.org
Mon Dec 2 17:46:45 UTC 2013


#23430: sanitize_user() disallows + in usernames causes problem for email as
username
-------------------------+------------------------------
 Reporter:  jb510        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Users        |     Version:  3.5.1
 Severity:  minor        |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by Otto42):

 I believe plus symbols in query strings are decoded to spaces, as in a URL
 like so:

 http://example.com?username=abc+123

 This may be the reason for the disallowing of them in strict mode. While
 WP itself doesn't necessarily use them in this manner, it's not totally
 portable for all possible use-cases.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/23430#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list