[osflash] Trac Spam
NikO
nicolas.coevoet at gmail.com
Wed Aug 30 10:51:02 EDT 2006
2006/8/30, Aral Balkan <aral at ariaware.com>:
> Oh man, tickets! They're attacking tickets?
> Do you know if Trac has something in the works for this? Can we start
> a project to add this to Trac if there isn't one already. We can
> contribute this back to them.
Well, you can do a things : remove possibilty to post a url into a
trac ticket :
in Ticket.py :
<code>
def create_ticket(self):
if not self.args.get('summary'):
raise util.TracError('Tickets must contain Summary.')
if self.args.get('summary').find('http://') != -1:
raise util.TracError('Antispam: Ticket summary cannot contain URL.')
if self.args.get('description').find('http://') != -1:
raise util.TracError('Antispam: Ticket description cannot
contain URL.')
ticket = Ticket()
ticket.populate(self.args)
ticket.setdefault('reporter',self.req.authname)
</code>
After recompile .pyc or .pyo and reboot apache.
Or :
http://trac.edgewall.org/wiki/SpamFilter
More information about the osflash
mailing list