Modify ↓
Opened 17 years ago
Closed 14 years ago
#5625 closed defect (fixed)
SpamFilter extlinks and division by zero errors
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | plugin - spam-filter |
Component: | plugin/spamfilter | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Setting the max_external_links config variable to 0 causes the extlinks spam filter to raise division by zero errors instead of lowering the karma of a submission with any external links.
The test method of ExternalLinksFilterStrategy ends up doing a
return -abs(self.karma_points) * num_ext / self.max_links, ...
which causes the error.
On the plus side, it looks like setting max_external_links to 1 will do what I want.
Attachments (0)
Change History (3)
comment:1 by , 16 years ago
Milestone: | → not applicable |
---|
comment:2 by , 15 years ago
Milestone: | not applicable → spam-filter-plugin |
---|---|
Owner: | removed |
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In r9881.