If someone types "button pusher" and you consider that particular combination of words offensive, but not when used individually (e.g. button, or pusher), you can't filter them the way the module is currently.
Sorry for the messy patch. (see attached)
The only lines you need pay attention to are: 125, 126, 174, 175.
| Comment | File | Size | Author |
|---|---|---|---|
| patch_7.diff | 8.1 KB | ms2011 |
Comments
Comment #1
yngens commentedi need this function to filter the whole expressions, not separate words. but applying this patch gives lots of errors:
patch <*.diff
(Stripping trailing CRs from patch.)
patching file README.txt
Hunk #1 FAILED at 14.
1 out of 1 hunk FAILED -- saving rejects to file README.txt.rej
(Stripping trailing CRs from patch.)
patching file wordfilter.install
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file wordfilter.install.rej
(Stripping trailing CRs from patch.)
patching file wordfilter.module
Hunk #1 succeeded at 17 with fuzz 1 (offset 10 lines).
Hunk #2 FAILED at 86.
Hunk #3 FAILED at 96.
Hunk #4 FAILED at 133.
Hunk #5 FAILED at 169.
Hunk #6 FAILED at 196.
Hunk #7 FAILED at 223.
Hunk #8 FAILED at 265.
7 out of 8 hunks FAILED -- saving rejects to file wordfilter.module.rej
Comment #2
yngens commentedok, after trying many different ways i managed to achieve the needed effect. i don't know how to make patches, so posting the whole code for the module:
Comment #3
jaydub commentedComment #4
jaydub commentedJust checked in a refactoring of wordfilter word list
adminstration.
The main admin page now shows the current word list
as a table with paged results. From here you can edit
or remove a single original word/replacement word pair.
The add page has been changed to allow easier creation
of multiple original word/replacement word pairs. Quick
explanation:
"Enter a word or phrase you want to filter followed
by '|' and the replacement word or phrase. You can
enter multiple word and replacement word pairs by
hitting return and adding more word pairs. Any word
or phrases that do not have a replacement word or
phrase will use the default replacement word below."
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.