From 65d46a5c05a73e1ec5e73229730b4d30cbae4647 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Mon, 29 Mar 2010 13:48:11 -0700 Subject: Added roster to the CGIs that return HTTP 401 status for an authentication failure, and return HTTP 404 status from all CGIs for an invalid list name. --- Mailman/Cgi/confirm.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Mailman/Cgi/confirm.py') diff --git a/Mailman/Cgi/confirm.py b/Mailman/Cgi/confirm.py index 95b33dca..8c681732 100644 --- a/Mailman/Cgi/confirm.py +++ b/Mailman/Cgi/confirm.py @@ -61,6 +61,8 @@ def main(): safelistname = Utils.websafe(listname) bad_confirmation(doc, _('No such list %(safelistname)s')) doc.AddItem(MailmanLogo()) + # Send this with a 404 status. + print 'Status: 404 Not Found' print doc.Format() syslog('error', 'No such list "%s": %s', listname, e) return -- cgit v1.2.3