UseBB Community

UseBB support, discussion and development

[COMPLETED] Allow all kinds of user names

Post Reply

Page: 1

Author Post
Member
Registered: Feb 2005
Posts: 49
Location: Russia
using of preg_match(USER_PREG, $_POST['user']) isn't good. may be just replace invalid character to entities? Bacause this disallow you create users with non-english letters and with ' in name
_______________
[druidvav.info] [reloadcms.com] [linuxsuxx.org] [2:5025/2275.112]
« Last edit by Dietrich on Wed Mar 02, 2005 7:30 pm. »
Member
Registered: Feb 2005
Posts: 49
Location: Russia
Good way is to use

$_POST['user'] = htmlspecialchars($_POST['user'], ENT_QUOTES);

than

preg_match(USER_PREG, $_POST['user'])

in line 53 of panel_register.php (latest cvs )
_______________
[druidvav.info] [reloadcms.com] [linuxsuxx.org] [2:5025/2275.112]
Member
Registered: Feb 2005
Posts: 49
Location: Russia
And in other form
_______________
[druidvav.info] [reloadcms.com] [linuxsuxx.org] [2:5025/2275.112]
Member
Registered: Feb 2005
Posts: 49
Location: Russia
And in other files too
_______________
[druidvav.info] [reloadcms.com] [linuxsuxx.org] [2:5025/2275.112]
Developer
Registered: Apr 2004
Posts: 2230
Location: Belgium
I will rewrite some code soon to allow all kinds of names...
Developer
Registered: Apr 2004
Posts: 2230
Location: Belgium
Fixed in CVS. Feel free to register all kinds of Russian names... :)

Post Reply

Page: 1

UseBB Community is powered by UseBB 1 Forum Software