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 (Open)
 Bad Word Filter does not work with , in bad word
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

volition
Starting Member

USA
49 Posts

Posted - 05 July 2003 :  17:25:13  Show Profile  Visit volition's Homepage
OK, I know most people would not need to have a , in a bad word, but if you do it does not work.

Reason for doing this:
People post messages like:
Need Trainers--OH,MN,MI,NC,IL,MA,PA,NJ,GA,FL,NY,MI,VA,MA

Which if long enough messes up the formating. So, I thought to create a bad word filter for each state changing ",AZ" to " AZ" for all 50 states.

When I created the first one, the forum no longer worked. I got this error:

Microsoft VBScript runtime error '800a0009'
Subscript out of range: 'i'
/forums/inc_func_common.asp, line 220


That line is of course:
fString = Replace(fString, bwords(i), breplace(i), 1, -1, 1)

I doubt this can be fixed, nor should anyone else ever need to do this, but I thought I would let you know.

Volition® - The Net's Oldest Free-Stuff Site

Snitz Forum at http://forum.volition.com/

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 05 July 2003 :  18:43:09  Show Profile
as a temporary fix try using , instead of the comma in your bad word list

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~

Edited by - Nikkol on 05 July 2003 18:54:09
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 05 July 2003 :  18:54:40  Show Profile
Nikkol, I tried that and it didn't seem to work...
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 05 July 2003 :  19:06:51  Show Profile
ya, I'm testing it right now. But I also don't get that error either if I add something like ",ky" to my badword list.

Oops ... nevermind ... just got it. Wierd that I didn't before.

What about using a pipe instead of a comma to separate the list of words?

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~

Edited by - Nikkol on 05 July 2003 19:39:32
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 05 July 2003 :  19:23:07  Show Profile
couldn't you add a Replace function to replace a "comma" with "comma space" before you save (or display) a post?
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 05 July 2003 :  19:54:36  Show Profile
except that in some cases, you might want to squash a listing together (like if you were trying to demonstrate code.

if you are going to use commas to delimit the badword list in the application variable, then any badword with a comma in it should have a text qualifier as well.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.58 seconds. Powered By: Snitz Forums 2000 Version 3.4.07