Previous Thread
Next Thread
Print Thread
Rate Thread
#272477 04/15/2004 11:35 PM
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??

Sponsored Links
harsh #272478 04/15/2004 11:36 PM
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.

Daine #272479 04/15/2004 11:38 PM
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.

Daine #272480 04/15/2004 11:57 PM
Joined: Jan 2004
Posts: 40
User
User
Joined: Jan 2004
Posts: 40
Gotcha, thanks for the info.

harsh #272481 04/16/2004 4:19 PM
Joined: Oct 2000
Posts: 2,223
Veteran
Veteran
Offline
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.
Sponsored Links
zerind #272482 04/16/2004 8:01 PM
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
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.

eslmix #272483 02/24/2006 6:42 PM
Joined: Feb 2006
Posts: 2
Lurker
Lurker
Offline
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.

poker101 #272484 03/10/2006 8:07 PM
Joined: Feb 2006
Posts: 2
Lurker
Lurker
Offline
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. [/]


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)