Modify ↓
Opened 19 years ago
Closed 19 years ago
#3064 closed defect (fixed)
Regex spam filter does not work correctly
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | devel |
Severity: | normal | Keywords: | spam-filter |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
There is a patch for regex spam-filter.
-
tracspamfilter/filters/regex.py
20 20 from trac.core import * 21 21 from trac.wiki.api import IWikiChangeListener 22 22 from trac.wiki.model import WikiPage 23 from tracspamfilter.api import IFilterStrategy 23 from tracspamfilter.api import IFilterStrategy, RejectContent 24 24 25 25 26 26 class RegexFilterStrategy(Component): … … 30 30 self.patterns = [] 31 31 page = WikiPage(self.env, 'BadContent') 32 32 if page.exists: 33 self._load patterns(page)33 self._load_patterns(page) 34 34 35 35 # IFilterStrategy methods 36 36
Attachments (0)
Note:
See TracTickets
for help on using tickets.
Fixed in [3254], thanks!