Edgewall Software

Ticket #5383: trac-spamfilter-akismet-author.diff

File trac-spamfilter-akismet-author.diff, 0.5 KB (added by Nils Maier <MaierMan@…>, 18 months ago)
  • tracspamfilter/filters/akismet.py

     
    124124 
    125125    def _post(self, url, req, author, content): 
    126126        # Split up author into name and email, if possible 
     127        if not author: 
     128            author = 'anonymous' 
    127129        author = author.encode('utf-8') 
    128130        author_name, author_email = parseaddr(author) 
    129131        if not author_name and not author_email: