Foren / Cotonti / Bugs / Critical Error in registration

in username wrong symbol

inkerman
#1 23. Juni 2010, 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 19. Juli 2010, 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 20. Juli 2010, 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 22. Juli 2010, 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 6. Juni 2011, 13:45

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

GHengeveld
#6 6. Juni 2011, 13:50

Spam deleted, account banned.