Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
tips-topic
Wordpress usernames, allowable characters?
Avatar
Bart C.
New Jersey, USA
Member
Free Members
sp_UserOfflineSmall Offline
Oct 16, 2014 - 11:47 am

took a closer look at the sanitize-User subroutine in the Formatting.php file

line 1132 has a string of characters that look like allowed characters for when the $strict variable is set to TRUE as we did last night.  the code around line 1132 also looks like it's pointing to this string of characters when $strict=true.

In the string of characters there is a mysterious looking space after the number 9 so I deleted the space, saved the file and tried to register the username "test user".  before deleting the space it would take the name, change it to testuser, and then welcome the new user to the site.

with the space after the 9 in line 1132 deleted, it now throws an error message and our users will be better for it!

Bart

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 16, 2014 - 8:38 pm

glad you got what you want....

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17357
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10123
Posts: 79616