upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / mailman / trunk / 02-fix-500-error-for-non-member.patch
blobb893d0ac608dde3b35070a427253f17db3bd0050
1 # https://bazaar.launchpad.net/~mailman-coders/mailman/2.1/revision/1887
2 # https://bazaar.launchpad.net/~mailman-coders/mailman/2.1/revision/1888
4 === modified file 'Mailman/Cgi/options.py'
5 --- old/Mailman/Cgi/options.py 2021-11-24 03:38:19 +0000
6 +++ new/Mailman/Cgi/options.py 2022-02-22 18:10:03 +0000
7 @@ -169,8 +169,9 @@
8 if not mlist.isMember(user):
9 if mlist.private_roster == 0:
10 doc.addError(_('No such member: %(safeuser)s.'))
11 - loginpage(mlist, doc, None, language)
12 - print doc.Format()
13 + user = None
14 + loginpage(mlist, doc, user, language)
15 + print doc.Format()
16 return
18 # Avoid cross-site scripting attacks