~msapiro/mailman/vhost

« back to all changes in this revision

Viewing changes to Mailman/Cgi/options.py

  • Committer: Mark Sapiro
  • Date: 2021-11-24 03:42:53 UTC
  • mfrom: (837.59.69 2.1)
  • Revision ID: mark@msapiro.net-20211124034253-tpyl73kyn6l4l9p5
Merged from 2.1 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
        return
167
167
    # Sanity check the user, but only give the "no such member" error when
168
168
    # using public rosters, otherwise, we'll leak membership information.
169
 
    if not mlist.isMember(user) and mlist.private_roster == 0:
170
 
        doc.addError(_('No such member: %(safeuser)s.'))
171
 
        loginpage(mlist, doc, None, language)
172
 
        print doc.Format()
 
169
    if not mlist.isMember(user):
 
170
        if mlist.private_roster == 0:
 
171
            doc.addError(_('No such member: %(safeuser)s.'))
 
172
            loginpage(mlist, doc, None, language)
 
173
            print doc.Format()
173
174
        return
174
175
 
175
176
    # Avoid cross-site scripting attacks