From 662f43897a36654177b351ffa2075d6a8039dd5b Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Thu, 27 Oct 2016 15:37:37 -0700 Subject: Fixed incorrect "view more members" links at the bottom of the admin Membership List pages. --- Mailman/Cgi/admin.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Mailman/Cgi') diff --git a/Mailman/Cgi/admin.py b/Mailman/Cgi/admin.py index 843f6e08..736cc684 100644 --- a/Mailman/Cgi/admin.py +++ b/Mailman/Cgi/admin.py @@ -1188,11 +1188,12 @@ def membership_options(mlist, subcat, cgidata, doc, form): continue start = chunkmembers[i*chunksz] end = chunkmembers[min((i+1)*chunksz, last)-1] - url = url + 'chunk=%d' % i + findfrag - if isinstance(url, unicode): - url = url.encode(Utils.GetCharSet(mlist.preferred_language), + thisurl = url + 'chunk=%d' % i + findfrag + if isinstance(thisurl, unicode): + thisurl = thisurl.encode( + Utils.GetCharSet(mlist.preferred_language), errors='ignore') - link = Link(url, _('from %(start)s to %(end)s')) + link = Link(thisurl, _('from %(start)s to %(end)s')) buttons.append(link) buttons = UnorderedList(*buttons) container.AddItem(footer + buttons.Format() + '

') -- cgit v1.2.3