Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Bug Reports (Closed)
 V33(.03) BUG+FIX: Badwords not being filtered
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

pcguy
Starting Member

42 Posts

Posted - 06 November 2001 :  21:31:38  Show Profile
The bad word filter seems to work only in the message, allowing bad words in the subject to pass through unchecked.

Can anyone confirm? Fix?

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 06 November 2001 :  22:06:45  Show Profile
What I did to fix it here was the following:

in inc_functions.asp on line #407 find this:

		chkBadWords(fString)


replace it with:

		if strBadWordFilter = "1" then
fString = chkBadWords(fString)
end if



Then on line #447 find this:

	if fField_Type = "display" then
if strAllowHTML <> "1" then
fString = HTMLEncode(fString)
end if
chkString = fString
exit function


insert the following on line #451 (just above the chkString = fString line):

		if strBadWordFilter = "1" then
fString = chkBadWords(fString)
end if



so it now looks like this:

	if fField_Type = "display" then
if strAllowHTML <> "1" then
fString = HTMLEncode(fString)
end if
if strBadWordFilter = "1" then
fString = chkBadWords(fString)
end if
chkString = fString
exit function
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 06 November 2001 :  22:07:34  Show Profile
Can you try it out and see if it works for you? If so, I'll label it as a fix.
Go to Top of Page

Capt_Dunzell
Junior Member

USA
160 Posts

Posted - 07 November 2001 :  00:25:54  Show Profile  Visit Capt_Dunzell's Homepage
It worked out for me Richard, good timing too, I was just about to ask about this issue when it showed up with a fix.

http://66.34.117.92/forum/
Go to Top of Page

pcguy
Starting Member

42 Posts

Posted - 07 November 2001 :  09:38:05  Show Profile
quote:

Can you try it out and see if it works for you? If so, I'll label it as a fix.



What about line 97? (In side function FormatStr(fString)) ???

Also - should it be:
if strBadWordFilter = 1 then

or

if strBadWordFilter = "1" then ????

Thanks-

Edited by - pcguy on 07 November 2001 09:41:02
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 07 November 2001 :  13:20:51  Show Profile
quote:
What about line 97? (In side function FormatStr(fString)) ???


FormatStr isn't used to display the Subject lines, chkString is.

quote:
Also - should it be:
if strBadWordFilter = 1 then

or

if strBadWordFilter = "1" then ????


Both seem to work.
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 07 November 2001 :  15:39:32  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
fixed in 3.4

---------------
-Da_Stimulator
Stims Snitz Test area - Running 3.3.03, 4 beta, and Huw's modified code
Need a Mod? Check out the Mod Resource
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 07 November 2001 :  15:49:48  Show Profile
quote:
Also - should it be:
if strBadWordFilter = 1 then

or

if strBadWordFilter = "1" then ????
I would use:
strBadWordFilter = "1" then
just to make sure it won't break.
Making a comparison between a string and an integer could lead to some unwanted results.

- David
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 07 November 2001 :  15:55:17  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
I changed it to

if strBadWordFilter = 1 or strBadWordFilter = "1" then

Because I've come across problems myself with this, it works both ways :P

---------------
-Da_Stimulator
Stims Snitz Test area - Running 3.3.03, 4 beta, and Huw's modified code
Need a Mod? Check out the Mod Resource
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 15 November 2001 :  06:34:39  Show Profile
it should be:

if strBadWordFilter = "1" then
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 24 November 2001 :  12:41:37  Show Profile
Fixed (and re-fixed - see topic 17762) in [v40b03patch001]...

Think Pink
Test Site not ready yet | Post v40b03 Patches
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.14 seconds. Powered By: Snitz Forums 2000 Version 3.4.07