UseBB Community

The official board for UseBB help and discussion

UseBB Community » Feature Requests » [COMPLETED] Allow all kinds of user names

[COMPLETED] Allow all kinds of user names

Page: 1

Author Post
Member
Registered: Feb 2005
Posts: 82
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: 82
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: 82
Location: Russia
And in other form
_______________
[druidvav.info] [reloadcms.com] [linuxsuxx.org] [2:5025/2275.112]
Member
Registered: Feb 2005
Posts: 82
Location: Russia
And in other files too
_______________
[druidvav.info] [reloadcms.com] [linuxsuxx.org] [2:5025/2275.112]
Developer
Registered: Apr 2004
Posts: 2216
Location: Belgium
I will rewrite some code soon to allow all kinds of names...
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Developer
Registered: Apr 2004
Posts: 2216
Location: Belgium
Fixed in CVS. Feel free to register all kinds of Russian names... :)
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog

Page: 1

UseBB Community » Feature Requests » [COMPLETED] Allow all kinds of user names

UseBB Community is powered by UseBB 1 Forum Software