|
|
Joined: Jan 2004
Posts: 40
User
|
User
Joined: Jan 2004
Posts: 40 |
I notice the bad word censor does not filter out characters like '$'.
Is $ some kind of escape character in php??
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Yeah, special characters can really hose up your word filter. you can try placing a backslash before it to comment it out
ie if you want to censor "a$$" try this: "a\$\$". Untested, but that might work.
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Nope that doesn't work. The backslash trick works for slashes.
I had a client today in fact that put: "b/c" in their badwords file. Anytime there's a slash like that, every post and subject ends up totally blank. You have to use "b\/c". But that trick doesn't work with the dollar sign.
|
|
|
|
Joined: Jan 2004
Posts: 40
User
|
User
Joined: Jan 2004
Posts: 40 |
Gotcha, thanks for the info.
|
|
|
|
Joined: Oct 2000
Posts: 2,223
Veteran
|
Veteran
Joined: Oct 2000
Posts: 2,223 |
just off the top of my head, how about if you quote it, to make it a literal.
I'm pretty sure that 6.5 handles the censor list differently and characters such as $ will behave properly
Picture perfect penmanship here.
|
|
|
|
Joined: Aug 2000
Posts: 1,609
Addict
|
Addict
Joined: Aug 2000
Posts: 1,609 |
I tried censoring variants for words before with interesting results. I think it was sh!t that I tried to censor, that ended up sensoring st., as in the abbreviation for saint and street.
|
|
|
|
Joined: Feb 2006
Posts: 2
Lurker
|
Lurker
Joined: Feb 2006
Posts: 2 |
is there any more info on what exactly the special characters are how you can use them in the bad words list in 6.4?
The back-slash does not work on the $. The word sh!t gets filtered just fine, though. Putting things like "$hit" in double quotes doesn't help either.
I guess I'm looking for the escape character and a list of special characters. Thanks.
|
|
|
|
Joined: Feb 2006
Posts: 2
Lurker
|
Lurker
Joined: Feb 2006
Posts: 2 |
Bump. Anyone have any info on what the "special characters" are and how to use them in the bad word list?
[]Rhett said: is there any more info on what exactly the special characters are how you can use them in the bad words list in 6.4?
The back-slash does not work on the $. The word sh!t gets filtered just fine, though. Putting things like "$hit" in double quotes doesn't help either.
I guess I'm looking for the escape character and a list of special characters. Thanks. [/]
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|