diff options
| author | bwarsaw | 2000-09-29 00:05:05 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-09-29 00:05:05 +0000 |
| commit | ceddf83bf0000704b4c2c3428db124e88d4a1ee4 (patch) | |
| tree | afb489a2eb004c39366553fb4cb12d9da5c8b7e7 /Mailman/Cgi/subscribe.py | |
| parent | 8fab2b4ea200b7fbdac7e5f99881f07047ef467c (diff) | |
| download | mailman-ceddf83bf0000704b4c2c3428db124e88d4a1ee4.tar.gz mailman-ceddf83bf0000704b4c2c3428db124e88d4a1ee4.tar.zst mailman-ceddf83bf0000704b4c2c3428db124e88d4a1ee4.zip | |
Diffstat (limited to 'Mailman/Cgi/subscribe.py')
| -rw-r--r-- | Mailman/Cgi/subscribe.py | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/Mailman/Cgi/subscribe.py b/Mailman/Cgi/subscribe.py index fc62d56d5..a84f2c0ef 100644 --- a/Mailman/Cgi/subscribe.py +++ b/Mailman/Cgi/subscribe.py @@ -32,18 +32,10 @@ from Mailman.Logging.Syslog import syslog def main(): doc = Document() - try: - path = os.environ['PATH_INFO'] - except KeyError: - doc.AddItem(Header(2, "Error")) - doc.AddItem(Bold("You must include a listname in the url.")) - print doc.Format(bgcolor="#ffffff") - return - - parts = Utils.GetPathPieces(path) - if len(parts) < 1: + parts = Utils.GetPathPieces() + if not parts: doc.AddItem(Header(2, "Error")) - doc.AddItem(Bold("Invalid options to CGI script.")) + doc.AddItem(Bold('Invalid options to CGI script')) print doc.Format(bgcolor="#ffffff") return |
