diff options
author | Mark Sapiro <mark@msapiro.net> | 2010-03-29 13:48:11 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2010-03-29 13:48:11 -0700 |
commit | 65d46a5c05a73e1ec5e73229730b4d30cbae4647 (patch) | |
tree | 98704da13231ecf0eba407e46409d40074b884f3 /Mailman/Cgi/confirm.py | |
parent | f6d1105683699c64e4cbbad0a4dbc13edd4177d5 (diff) | |
download | mailman2-65d46a5c05a73e1ec5e73229730b4d30cbae4647.tar.gz mailman2-65d46a5c05a73e1ec5e73229730b4d30cbae4647.tar.xz mailman2-65d46a5c05a73e1ec5e73229730b4d30cbae4647.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | Mailman/Cgi/confirm.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 <em>%(safelistname)s</em>')) 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 |