Installed this with the list of bad words I found on a thread here, and it works great. However, if there is a short version of a word in the list it finds that first. For example, if the list includes "back" and "backing" then when I enter "backing" in a post, I see "[filtered word]ing", when I want to see "[filtered word]".

I presume this is due to the fact that "back" was added to the list before "backing". Guess I could get round this by sorting the list of words before entering it, but that will be a pain if I have to remember to enter new words backwards.

I have resolved this for my purposes by changing line 342 of wordfilter.module to be:

$result = db_query('SELECT * FROM {wordfilter} ORDER BY words DESC');

Don't know if anyone else finds this an issue or not, but it works for me.

Comments

jaydub’s picture

Status: Active » Fixed

Committed this to CVS. Pretty simple fix but never occurred to
me. Thanks for pointing it out.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.