summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcotton1998-10-28 19:50:42 +0000
committercotton1998-10-28 19:50:42 +0000
commitae182ecf0a4264b2e2f85863485c2f06f99bf5a7 (patch)
tree49be95481eb2330d4e2c3491d7d2bc13958feb19
parent6f4de891d0343b5d043e8eb21ec35f8ab1f6319a (diff)
downloadmailman-ae182ecf0a4264b2e2f85863485c2f06f99bf5a7.tar.gz
mailman-ae182ecf0a4264b2e2f85863485c2f06f99bf5a7.tar.zst
mailman-ae182ecf0a4264b2e2f85863485c2f06f99bf5a7.zip
-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])