summaryrefslogtreecommitdiff
path: root/Mailman/Cgi/subscribe.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Cgi/subscribe.py')
-rw-r--r--Mailman/Cgi/subscribe.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Mailman/Cgi/subscribe.py b/Mailman/Cgi/subscribe.py
index 025df1fd1..fda68c6b4 100644
--- a/Mailman/Cgi/subscribe.py
+++ b/Mailman/Cgi/subscribe.py
@@ -26,7 +26,11 @@ from Mailman import mm_cfg
def main():
doc = htmlformat.Document()
-
+ if not os.environ.has_key("PATH_INFO"):
+ doc.AddItem(htmlformat.Header(2, "Error"))
+ doc.AddItem(htmlformat.Bold("You must include a listname in the url."))
+ print doc.Format(bgcolor="#ffffff")
+ sys.exit(0)
path = os.environ['PATH_INFO']
list_info = Utils.GetPathPieces(path)
list_name = string.lower(list_info[0])