Forums / Cotonti / Bugs / Critical Error in registration

in username wrong symbol

inkerman
#1 2010-06-23 05:37
If in username used character "<", then events Critical error
I'm think that it's caused by incorrect template in
preg_match('/&#\d+;/', $name) || preg_match('/[<>#\'"\/]/', $name)
ToM
#2 2010-07-19 22:15
Yes this is strange because I tested few days ago and I can create user with name e.g. #$%$&ljlj*! .
I thought that mentioned line:
preg_match('/&#\d+;/', $name) || preg_match('/[<>#\'"\/]/', $name)

should prevent username like this but it doesn't. I haven't had time to check where could be an issue but there is some in function probably.
Salvation is the gift but sometimes is to hard for us to acknowledge it.
Trustmaster
#3 2010-07-20 00:38
Well, you can't really register a user called "#$%$&ljlj*!" and that line seems to work. As for "<" it triggers a different error, because sed_import() doesn't pass it.
May the Source be with you!
ToM
#4 2010-07-22 01:59
Hmm it is quite strange. I can register #$%$&ljlj*! user with no problem. I have 0.6.6 version so I try to upgrade to 0.6.9.
Salvation is the gift but sometimes is to hard for us to acknowledge it.
Kingsley
#5 2011-06-06 13:45

oe I think we've got a bit of spam above me..

GHengeveld
#6 2011-06-06 13:50

Spam deleted, account banned.