MyBB Community Forums

Full Version: Bad word filter
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
you can try putting spaces on either side of the bad word like " lime ", so it will recognize it only as a word. But then there are limitations like if you have "something like lime." that wouldn't work.
DennisTT Wrote:you can try putting spaces on either side of the bad word like " lime ", so it will recognize it only as a word. But then there are limitations like if you have "something like lime." that wouldn't work.

Should I use parenthesis as you did (i.e. " xxx ") or simply have space before and after the xxx word when I am entering words to database. Currently I did not use any parenthesis just word in question.

Thank you.

EB
It would be best to change do_bad_words in functions_post.php . The algorithm should convert any leading or trailing whitespace to a word boundary.