New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Numeric usernames can start with a space #4481
Comments
I can confirm this |
Usernames should be trimmed by JForms, like any other text field. Smells like a more general bug ? |
Related to http://issues.joomla.org/tracker/joomla-cms/4484 "Usernames can start with a non-breakable space" (and with #4484 the usernames can be alpha/numeric/alphanumeric) |
The usernames are filtered by JForms so filter="username" and according to http://docs.joomla.org/Retrieving_request_data_using_JInput |
Hi I made the pull request to fix the issue #4489 . The reason of the issue is explained in the pull request as well. Please help testing when you have time :) . |
Closing as we have a PR. |
Reported in forum by "---finder" http://forum.joomla.org/viewtopic.php?f=728&t=861038 and I was able to reproduce the bug.
Steps to reproduce the issue
Create a new user on front-end with username that starts with space and only contains numbers,
e.g. " 123" (space + 123).
Expected result
Expected error: "Registration failed: Please enter a valid username. No space at beginning or end, at least 2 characters and must not contain the following characters: < > \ " ' % ; ( ) &"
This error is shown when you try to create a new user on front-end with "alphanumeric" username, e.g. " 123test" (space + 123test).
Actual result
Username with space + numbers has been created & the following message is displayed:
"Message
Your account has been created and an activation link has been sent to the email address you entered. Note that you must activate the account by clicking on the activation link when you get the email before you can login."
System information (as much as possible)
Version: Joomla! 3.3.7-dev Development [ Ember ] 01-October-2014 02:00 GMT
Additional comments
The text was updated successfully, but these errors were encountered: