Customizing SMF > SMF Coding Discussion
Incorrect 'bad' words filtering?
(1/1)
jindroush:
Hi,
I added word 'f asterisk asterisk k' to the banned words list. I didn't know the asterisk would work as a wildcard.
When clicked on 10 recent messages link, this manipulated < img src=... > tag badly, so the smile was not visible.
BTW: Is there a way to have banned word with asterisk? Escaping with backslash doesn't help. Users sometimes write 'sh*t' or such and I want also such obfuscation to be caught (my forum is intended for all ages).
[Unknown]:
I believe the \ works... like \*. f\*\*k.
-[Unknown]
jindroush:
Problem 1:
Not for me, for sure. Using beta5.
f\*ck matches f\*ck and f\*ack
but not f*ck
----
Problem 2:
when using censored word f**k and action=recent, some wink smiley displayed, the img gets incorrectly 'censored' (mangled) as following:
< img src="http://domain/CENSORED.gif" alt="Wink" border="0" / >
Original is:
http://domain/forum/Smileys/classic/wink.gif
Navigation
[0] Message Index
Go to full version