Previous Thread
Next Thread
Print Thread
Hop To
#95785 05/12/2000 8:51 PM
Anonymous
Unregistered
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.

Anonymous
Unregistered
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;
		}
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;
		}
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).]

Anonymous
Unregistered
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.

Anonymous
Unregistered
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!

#95789 01/09/2001 10:19 PM
Anonymous
Unregistered
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


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
1 members (1 invisible), 304 guests, and 96 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)