From 78fb8983ae8873ba1ff0640e556eb61b88dba9a7 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Fri, 3 Feb 2017 22:20:11 -0800 Subject: Fixed a TypeError thrown in the roster CGI when called with a listname containing a % character. --- Mailman/Cgi/roster.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Mailman/Cgi') diff --git a/Mailman/Cgi/roster.py b/Mailman/Cgi/roster.py index e9ab03c1..cb6847af 100644 --- a/Mailman/Cgi/roster.py +++ b/Mailman/Cgi/roster.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2016 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2017 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 @@ -141,8 +141,8 @@ def error_page(errmsg): print doc.Format() -def error_page_doc(doc, errmsg, *args): +def error_page_doc(doc, errmsg): # Produce a simple error-message page on stdout and exit. doc.SetTitle(_("Error")) doc.AddItem(Header(2, _("Error"))) - doc.AddItem(Bold(errmsg % args)) + doc.AddItem(Bold(errmsg)) -- cgit v1.2.3