Opened 4 years ago

Last modified 8 months ago

#11200 accepted enhancement

New user and hacks pages should be passed through the spam filter

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Component: TracHacksPlugin
Severity: normal Keywords:
Cc: Steffen Hoffmann, Dirk Stöcker Trac Release:


I have looked into this myself so I'm fuzzy on the details, but stoecker mentioned over email that the new user pages aren't passing through the SpamFilter. I have to assume that the same is true for NewHack pages.

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by Ryan J Ollos

See also #11742.

comment:2 Changed 3 years ago by Dirk Stöcker

Creating a Adapter for NewHacks is easy. Simply call

FilterSystem(self.env).test(req, author, changes)

where author is an author name and changes a list of before/after strings. For NewHack the before is probably always None.

Examples here: trac:browser:plugins/1.0/spam-filter/tracspamfilter/ and here: trac:browser:plugins/1.0/spam-filter/tracspamfilter/

See examples how to extract author name.

Best is to encapsulate the code, so that it only is called when spam-filter exists.

Last edited 8 months ago by Ryan J Ollos (previous) (diff)

comment:3 Changed 8 months ago by Ryan J Ollos

Status: newaccepted

Modify Ticket

Change Properties
Set your email in Preferences
as accepted The owner will remain Ryan J Ollos.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.