~jimpop/+junk/mailman_htdig_mhonarc

« back to all changes in this revision

Viewing changes to Mailman/Cgi/rmlist.py

  • Committer: Mark Sapiro
  • Date: 2018-12-30 17:44:04 UTC
  • mfrom: (1629.5.136 htdig)
  • Revision ID: mark@msapiro.net-20181230174404-bdr12f6lym4cxn4y
Merged from 2.1 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
                           mm_cfg.AuthListAdmin,
128
128
                           mm_cfg.AuthSiteAdmin),
129
129
                          password) == mm_cfg.UnAuthorized:
 
130
        remote = os.environ.get('HTTP_FORWARDED_FOR',
 
131
                 os.environ.get('HTTP_X_FORWARDED_FOR',
 
132
                 os.environ.get('REMOTE_ADDR',
 
133
                                'unidentified origin')))
 
134
        syslog('security',
 
135
               'Authorization failed (rmlist): list=%s: remote=%s',
 
136
               mlist.internal_name(), remote)
130
137
        request_deletion(
131
138
            doc, mlist,
132
139
            _('You are not authorized to delete this mailing list'))