[patch] SpamFilter for Wiki pages defective (at least with >= 0.11.3)
|Reported by:||anonymous||Owned by:||Christian Boos|
I had the problem, that SPAM on the WIKI pages got not filtered with the Trac spam plugin so I searched the reason. Following fix seems to cure that problem:
Index: tracspamfilter/adapters.py =================================================================== --- tracspamfilter/adapters.py (revision 8172) +++ tracspamfilter/adapters.py (working copy) @@ -90,7 +90,7 @@ comment = req.args['comment'] # Test the actual page changes as well as the comment - changes = [(cur_page.text, page.text), (None, author)] + changes = [(cur_page.text, req.args['text']), (None, author)] if comment: changes += [(None, comment)]
Reason: The SPAM checker text should be the difference between old and new. Currently used is the difference between old and old (probably the filtering process was modified slightly in the past?).
Change History (11)
comment:7 by , 12 years ago
|Status:||new → assigned|