diff options
| author | bwarsaw | 1998-12-27 20:04:02 +0000 |
|---|---|---|
| committer | bwarsaw | 1998-12-27 20:04:02 +0000 |
| commit | 6c72141496abd0421e7e2704aefd416c1ece32ea (patch) | |
| tree | 84555e9fa83f030bd443d453fa709f3e16c6e978 | |
| parent | 7662f82fb5e0413cabe6879be806a1e98b4f9fe8 (diff) | |
| download | mailman-6c72141496abd0421e7e2704aefd416c1ece32ea.tar.gz mailman-6c72141496abd0421e7e2704aefd416c1ece32ea.tar.zst mailman-6c72141496abd0421e7e2704aefd416c1ece32ea.zip | |
get_list(): Watch out for no trailing slash on the URL, in which case
$PATH_INFO isn't exported into the environment. Handle this the same
as if no list name were given.
| -rw-r--r-- | Mailman/Cgi/roster.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Mailman/Cgi/roster.py b/Mailman/Cgi/roster.py index 28ca8e059..cc930ef0a 100644 --- a/Mailman/Cgi/roster.py +++ b/Mailman/Cgi/roster.py @@ -81,7 +81,11 @@ def main(): def get_list(): "Return list or bail out with error page." - list_info = Utils.GetPathPieces(os.environ['PATH_INFO']) + list_info = [] + try: + list_info = Utils.GetPathPieces(os.environ['PATH_INFO']) + except KeyError: + pass if len(list_info) != 1: error_page("Invalid options to CGI script.") sys.exit(0) |
