Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
4 registered (blaaskaak, EarleW, Rick, 1 invisible), 19 Guests and 23 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 11/30/08
Posts: 2
Top Posters (30 Days)
Ruben Rocha 179
Gizmo 112
Rick 104
Thelockman 80
driv 43
AllenAyres 35
ntdoc 28
Ian 24
Sirdude 23
ScriptKeeper 20
Latest Photos
My Home System
test photo gallery
Bernese Mountain Dogs
My Daimler
Dorado and shark
Topic Options
Rate This Topic
#95785 - 05/12/00 05:51 PM usernames and banned words?
Anonymous
Unregistered


Looked around, but didn't find this one.

I had a user named Shelley sign up, and she got a "Can't register you because your username contains 'hell'" message.

Why is this?

First, I have 'hell' in brackets {hell} so that 'hello' isn't turned into ****o. Second, that means I can't have usernames like "cassie", either.

Is there a way around this, to fix this, or is it a 'live with' it situation. I have to have banned words, and yes, I know you can get around them.

------------------
That which does not kill me does not kill me.

Top
#95786 - 05/12/00 06:16 PM Re: usernames and banned words?
Anonymous
Unregistered


5.45c - bug confirmed (yeah, I think this is a bug, so could Khârn please move it over there? Thx.)

Relevant code is in ubbmisc.cgi, sub RegSubmit.

Search for:
[CODE]CHECKCENSORLIST: for (@censored) {
if (m/({)(.*)(})/) {
$_ = ("$2");
}
if ($UserName =~ /$_/i) {
$BadWord = "true";
$CensorWord = $_;
last CHECKCENSORLIST;
}[/CODE]Possible fix (change to):
[CODE]CHECKCENSORLIST: for (@censored) {
if (m/({)(.*)(})/) {
$_ = ("$2");
$wordonly=1;
}
if ((($UserName =~ /$_/i) && !$wordonly) | | (($UserName =~ /b$_b/i))) {
$BadWord = "true";
$CensorWord = $_;
last CHECKCENSORLIST;
}[/CODE]Comments from other bug swatters?

(edit: there are two pipes in the message above (| |) - be sure to remove the space between them when copying the code!)

Graeme

[This message has been edited by Graeme (edited 05-12-2000).]

Top
#95787 - 05/12/00 06:35 PM Re: usernames and banned words?
Anonymous
Unregistered


Many thanks for the fast reply. I didn't think of it as a "bug", but a bad feature. Microsoft brainwashing, I guess.

Top
#95788 - 01/09/01 10:13 AM Re: usernames and banned words?
Anonymous
Unregistered


Searched the versions page to see if this "bug" had been fixed in a later version of UBB, but could not find the answer. Does anyone know?

Thanks for your help!

Top
#95789 - 01/09/01 06:19 PM Re: usernames and banned words?
Anonymous
Unregistered


Not sure - doesn't appear to be at first glance.

Surprised no one has bugged us about this in 7 months.

Moving to bugs for investigation.

Graeme

Top


Moderator:  AllenAyres, Gizmo, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Fatal error: Smarty::require_once
()

by ThreadsUser
Today at 08:17 AM
PayPal batch file for ID'ing expired and failed payment subscriptions?
by Mitch P.
Today at 06:02 AM
Shrinking graemlins
by Djuma
Yesterday at 05:48 PM
2 problems I'm seeing now.
by DougMM
Yesterday at 04:39 PM
Which CSS Style Controls the bottom lines
by David DelMonte
Yesterday at 01:51 PM
Forum Stats
4261 Members
33 Forums
30534 Topics
154967 Posts

Max Online: 978 @ 06/24/07 08:19 PM