aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2020-05-13 11:10:04 -0700
committerMark Sapiro <mark@msapiro.net>2020-05-13 11:10:04 -0700
commit6432a3277d824ce149cf0d105bab6b78a91821a4 (patch)
treeeffb664d8168ef4ae9876cce4108fa111b76bead
parent0b36d941cbb142f064756c56c0e19931f1b4a125 (diff)
downloadmailman2-6432a3277d824ce149cf0d105bab6b78a91821a4.tar.gz
mailman2-6432a3277d824ce149cf0d105bab6b78a91821a4.tar.xz
mailman2-6432a3277d824ce149cf0d105bab6b78a91821a4.zip
Fix potential ValueError in MailList.CheckPending.
-rw-r--r--Mailman/MailList.py7
-rw-r--r--NEWS9
2 files changed, 11 insertions, 5 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py
index 9e6bbcb6..01a5a915 100644
--- a/Mailman/MailList.py
+++ b/Mailman/MailList.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2018 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2020 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -846,9 +846,8 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin,
for k, v in pends.items():
if k in ('evictions', 'version'):
continue
- op, data = v
- if (op == Pending.SUBSCRIPTION and
- data.address.lower() == email.lower()):
+ if (v[0] == Pending.SUBSCRIPTION and
+ v[1].address.lower() == email.lower()):
return True
return False
diff --git a/NEWS b/NEWS
index 9208567a..602c2d53 100644
--- a/NEWS
+++ b/NEWS
@@ -1,10 +1,17 @@
-*- coding: iso-8859-1 -*-
Mailman - The GNU Mailing List Management System
-Copyright (C) 1998-2018 by the Free Software Foundation, Inc.
+Copyright (C) 1998-2020 by the Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
Here is a history of user visible changes to Mailman.
+2.1.34 (xx-xxx-xxxx)
+
+ Bug Fixes and other patches
+
+ - The fix for LP: #1859104 can result in ValueError being thrown on
+ attempts to subscribe to a list. This is fixed. (LP: #1878458)
+
2.1.33 (07-May-2020)
Security