Hi,

I have been configuring the abuse module for a site in spanish. We have a problem, since there are words in spanish composed of what could be, single bad words. For example, a banned word is "puta" and the word "computadora" keeps getting banned. I wanted to know if this is a known bug and if there is a known workaround.

Thanx!

Comments

jcisio’s picture

Issue tags: +watchlist, +banned words

In watchlist/watchlist.module, line 441:

      $check_set[] = '/'. $trimmed_word .'/i';

I think you can change it into:

      $check_set[] = '/\b'. preg_quote($trimmed_word) .'\b/i';
maxmendez’s picture

I have a same problem and try changed in watchlist/watchlist.module, line 441 to $check_set[] = '/\b'. preg_quote($trimmed_word) .'\b/i'; and work good thanks!!.

jcisio’s picture

Version: 6.x-1.1-alpha1 » 6.x-1.x-dev
Status: Active » Reviewed & tested by the community
betovarg’s picture

Thanx! it worked perfectly.

avpaderno’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Closed (outdated)
Issue tags: -watchlist, -banned words

I am closing this bug report, as it's for a not supported project version. If the bug is reproducible on a supported project version, please re-open this issue.