Author |
Topic  |
|
volition
Starting Member
USA
49 Posts |
Posted - 05 July 2003 : 17:25:13
|
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 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 05 July 2003 : 18:54:40
|
Nikkol, I tried that and it didn't seem to work... |
 |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
Posted - 05 July 2003 : 19:06:51
|
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 |
 |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 05 July 2003 : 19:23:07
|
couldn't you add a Replace function to replace a "comma" with "comma space" before you save (or display) a post? |
 |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
Posted - 05 July 2003 : 19:54:36
|
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 ~ |
 |
|
|
Topic  |
|
|
|