PDA

View Full Version : Registration Strips Characters?


Dave#
Mon 5th Aug '02, 3:32pm
Dave

is the same as

Dave#

isthesame as

Dave##

and so forth

It wouldn't let me register Dave# because Dave was already a member

Mike Sullivan
Mon 5th Aug '02, 6:03pm
vB2 does this as well:

if ($checkuser=$DB_site->query_first("SELECT username FROM user WHERE username='".addslashes(htmlspecialchars($username))."' OR username='".addslashes(eregi_replace("[^A-Za-z0-9]","",$username))."'")) {
eval("standarderror(\"".gettemplate("error_usernametaken")."\");");
exit;
} I believe the purpose was to prevent people from making "FirstLast" and "First Last" to confuse people. Will probably have to reevaluate though.

Dave#
Mon 5th Aug '02, 6:39pm
Really Ed?

I'll take your word for it but I'm registered on quite a few VB's as Dave#

Mike Sullivan
Mon 5th Aug '02, 6:45pm
The code I posted is actually from vB2.

Of course, I just realized that if you had registered before "Dave" did, you would've both been able to register without a problem. I'll have to do some more research, but removing this check might be worthwhile.

Dave#
Tue 6th Aug '02, 2:42am
Originally posted by Ed Sullivan
The code I posted is actually from vB2.

Of course, I just realized that if you had registered before "Dave" did, you would've both been able to register without a problem. I'll have to do some more research, but removing this check might be worthwhile.

I agree