Characters in usernames cause strange issues
I’ve found that usernames that seem to be perfectly valid for WordPress cause issues when running BuddyPress.
For example, a username like john.smith or firstname.lastname@example.org will do odd things.
If the username has a period in it (i.e. john.smith) I can’t even visit the user’s profile because it constructs urls like “http://localhost/buddypress/john-smith” and “http://localhost/buddypress/members/john-smith”. The period gets replaced by a dash, and therefore there is no user with that username and BuddyPress will redirect to the home page.
When the “@” character is present, it’s simply omitted in urls.
I have this running locally on:
I have Buddypress running remotely on CentOS 5 with the same versions (except with PHP 5.1) and I get similar problems.
On my remote host, I’ll get similar problems, but not as severe since, for some reason on the remote host the urls are not getting rewritten with dashes, or omitted @ symbols. Yet, I will see a few odd redirection issues, for instance, when attempting to post to the accounts own wire, after hitting post, the user is redirected to the home page rather than back to the wire…
It’s all very odd. Although I feel I’ve determined that this problem is caused by the format of the username, since usernames without “.” or “@” in them have absolutely none of these issues when using BuddyPress.
That said, can anyone possibly shine any light on what BuddyPress is doing with usernames like john.smith and email@example.com?
There’s something odd going on here… any help would be appreciated.
The topic ‘Characters in usernames cause strange issues’ is closed to new replies.