Page 1 of 1
Non-Alphanumeric?
Posted: Sat Jan 05, 2008 2:08 am
by rynoceris84
Is there any way that I can make the Username field in Self-Registration accept non-alphanumeric characters? Is there any reason why it would be a bad idea to do that? Any help would be greatly appreciated.
Ryan
Re: Non-Alphanumeric?
Posted: Sat Jan 05, 2008 3:09 pm
by Pierre M.
Hello Ryan,
rynoceris84 wrote:
Is there any way that I can make the Username field in Self-Registration accept non-alphanumeric characters? Is there any reason why it would be a bad idea to do that?
What about asking eBay, Google, Yahoo, MySpace, DailyMotion and all other internet Majors what are their reasons not to do that ?
Pierre M.
Re: Non-Alphanumeric?
Posted: Sat Jan 05, 2008 5:21 pm
by calguy1000
Well, I can think of two reasons
1) Non alphanumeric character support would make it alot easier to exploit any potential SQL injection bugs (especially since this is a key field, and used all over the place)
2) Non alphanumeric character support may cause problems with database character sets, or the html character set
and introduce alot more bugs than I'm prepared to handle at the moment.
Re: Non-Alphanumeric?
Posted: Sat Jan 05, 2008 5:56 pm
by rynoceris84
Thanks for the great explanations guys! This makes much more sense now that I think about it.