Opened 16 years ago
Closed 15 years ago
#8257 closed defect (fixed)
[patch] SpamFilter for Wiki pages defective (at least with >= 0.11.3)
Reported by: | anonymous | Owned by: | Christian Boos |
---|---|---|---|
Priority: | high | Milestone: | not applicable |
Component: | plugin/spamfilter | Version: | none |
Severity: | major | Keywords: | IWikiPageManipulator |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
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?).
Attachments (0)
Change History (11)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Milestone: | → not applicable |
---|
comment:3 by , 15 years ago
Is there anyone working on the spam-filter anymore? The last change has been made 9 month ago.
This is a core component of Trac, so this should work as expected.
comment:5 by , 15 years ago
I can verify that I've seen behavior like this with the spam-filter and wiki entries on our public Trac installation for an open-source project. The spam-filter monitor only shows the username / email address as the checked "content" so if the anonymous ticket filer is right — this would fix the issue.
follow-up: 7 comment:6 by , 15 years ago
What should the link to HowToContribute tell me? Without SVN account the patch I supplied is the maximum I can do. And now 2 months later it is still not applied.
comment:7 by , 15 years ago
Keywords: | IWikiPageManipulator added |
---|---|
Owner: | set to |
Status: | new → assigned |
Replying to anonymous:
What should the link to HowToContribute tell me? Without SVN account the patch I supplied is the maximum I can do.
Dear anonymous, it was not obvious you were the same anonymous that posted the patch, so the HowToContribute link was a general answer to the general address of "is anyone working on the spam-filter?"…
comment:8 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:10 by , 15 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I fear you need to reverse the arguments. At least first test indicate it and compared to my fix you reversed the two.
comment:11 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Indeed… fixed in r8326/r8327. Thanks for testing!
Probably this is also the reason for #4942.