aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Cgi/roster.py
diff options
context:
space:
mode:
authorYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2017-06-10 18:43:50 +0900
committerYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2017-06-10 18:43:50 +0900
commitae4c93087ddb0273f5c5205ef69fed5ae71221d4 (patch)
tree3b1721b212b41df13eddfcd68a1997861944b33e /Mailman/Cgi/roster.py
parentec87166d9d23a54701af5cc2e4c8f18df399bf14 (diff)
parent4836d8978d0b42b6a361c6a98962aec185e60023 (diff)
downloadmailman2-ae4c93087ddb0273f5c5205ef69fed5ae71221d4.tar.gz
mailman2-ae4c93087ddb0273f5c5205ef69fed5ae71221d4.tar.xz
mailman2-ae4c93087ddb0273f5c5205ef69fed5ae71221d4.zip
Merge lp:mailman/2.1 up to 1716
Diffstat (limited to 'Mailman/Cgi/roster.py')
-rw-r--r--Mailman/Cgi/roster.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/Cgi/roster.py b/Mailman/Cgi/roster.py
index cb6847af..739d4fff 100644
--- a/Mailman/Cgi/roster.py
+++ b/Mailman/Cgi/roster.py
@@ -64,7 +64,7 @@ def main():
# messages in form should go in selected language (if any...)
try:
- lang = cgidata.getvalue('language')
+ lang = cgidata.getfirst('language')
except TypeError:
# Someone crafted a POST with a bad Content-Type:.
doc = Document()
@@ -85,8 +85,8 @@ def main():
# "admin"-only, then we try to cookie authenticate the user, and failing
# that, we check roster-email and roster-pw fields for a valid password.
# (also allowed: the list moderator, the list admin, and the site admin).
- password = cgidata.getvalue('roster-pw', '').strip()
- addr = cgidata.getvalue('roster-email', '').strip()
+ password = cgidata.getfirst('roster-pw', '').strip()
+ addr = cgidata.getfirst('roster-email', '').strip()
list_hidden = (not mlist.WebAuthenticate((mm_cfg.AuthUser,),
password, addr)
and mlist.WebAuthenticate((mm_cfg.AuthListModerator,