Success

User tests: Successful: Unsuccessful:

avatar madasha
madasha
12 Jul 2013

Extended backend username validation and trimmed the username to ensure validation according to the stated rules:

Please enter a valid username. No spaces, at least 2 characters and must not contain the following characters: < > \ " ' % ; ( ) &

Also, added validation for potentially exploiting usernames, such as user../etc/passwd/name.

See tracker issue http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=30586

avatar madasha madasha - open - 12 Jul 2013
avatar beat
beat - comment - 14 Aug 2013

Are you sure you want 3 backslashes before the square bracket close ?

That removes the initial regex effect imho. You need probably 4 to have a valid escaped string there ?

Also see my comment above about merging the reexes.

avatar beat
beat - comment - 14 Aug 2013

Actually, also the \s needs 2 of them: \\ and the 2 dots . too. Fixed my proposed regex above. (warning: i had to double them in the commenting field edit so they display correctly...today...who knows if it's a github bug).

avatar brianteeman
brianteeman - comment - 13 Oct 2013

According to the related item on the issue tracker this has been committed

Add a Comment

Login with GitHub to post a comment