diff options
| author | mailman | 1998-03-05 19:59:09 +0000 |
|---|---|---|
| committer | mailman | 1998-03-05 19:59:09 +0000 |
| commit | 98cf560f0161f8d9ee94a14d0ae6a49b3169cd5e (patch) | |
| tree | 81d3bcf5eb2794cd9ad27b8633f44c9fbe6820aa /cgi | |
| parent | 4e92044311ae5256e89d91f0ea5143a443296329 (diff) | |
| download | mailman-98cf560f0161f8d9ee94a14d0ae6a49b3169cd5e.tar.gz mailman-98cf560f0161f8d9ee94a14d0ae6a49b3169cd5e.tar.zst mailman-98cf560f0161f8d9ee94a14d0ae6a49b3169cd5e.zip | |
Normalize the list name to lower case. (Email doesn't care, but
the web - URLs - does.)
Diffstat (limited to 'cgi')
| -rwxr-xr-x | cgi/admin | 2 | ||||
| -rwxr-xr-x | cgi/admindb | 2 | ||||
| -rwxr-xr-x | cgi/archives | 4 | ||||
| -rwxr-xr-x | cgi/edithtml | 2 | ||||
| -rwxr-xr-x | cgi/handle_opts | 4 | ||||
| -rwxr-xr-x | cgi/listinfo | 4 | ||||
| -rwxr-xr-x | cgi/options | 4 | ||||
| -rwxr-xr-x | cgi/subscribe | 4 |
8 files changed, 13 insertions, 13 deletions
@@ -25,7 +25,7 @@ def main(): print doc.Format() sys.exit(0) - list_name = list_info[0] + list_name = string.lower(list_info[0]) list = maillist.MailList(list_name) diff --git a/cgi/admindb b/cgi/admindb index 8fd7cbfa1..28508bc01 100755 --- a/cgi/admindb +++ b/cgi/admindb @@ -17,7 +17,7 @@ if len(list_info) < 1: print doc.Format() sys.exit(0) -list_name = list_info[0] +list_name = string.lower(list_info[0]) try: list = maillist.MailList(list_name) diff --git a/cgi/archives b/cgi/archives index c5614e7d5..99e79ad91 100755 --- a/cgi/archives +++ b/cgi/archives @@ -1,7 +1,7 @@ #!/usr/local/bin/python # We don't need to lock in this script, because we're never going to change data. -import sys, os, types, posix +import sys, os, types, posix, string sys.stderr = sys.stdout sys.path.append('/home/mailman/mailman/modules') import mm_utils, maillist, htmlformat @@ -16,7 +16,7 @@ if len(list_info) < 1: print "<h2>Invalid options to CGI script.</h2>" sys.exit(0) -list_name = list_info[0] +list_name = string.lower(list_info[0]) try: list = maillist.MailList(list_name) diff --git a/cgi/edithtml b/cgi/edithtml index 1764492a5..75ba77929 100755 --- a/cgi/edithtml +++ b/cgi/edithtml @@ -30,7 +30,7 @@ if len(list_info) < 1: print doc.Format() sys.exit(0) -list_name = list_info[0] +list_name = string.lower(list_info[0]) try: list = maillist.MailList(list_name) diff --git a/cgi/handle_opts b/cgi/handle_opts index 42d5ce286..157e09a88 100755 --- a/cgi/handle_opts +++ b/cgi/handle_opts @@ -1,6 +1,6 @@ #!/usr/local/bin/python -import sys, os, cgi +import sys, os, cgi, string f = open('/tmp/cbgb', 'a+') sys.stderr = f #sys.stderr = sys.stdout @@ -18,7 +18,7 @@ if len(list_info) < 2: print doc.Format() sys.exit(0) -list_name = list_info[0] +list_name = string.lower(list_info[0]) user = list_info[1] if len(list_info) < 2: diff --git a/cgi/listinfo b/cgi/listinfo index 20924b511..455de3854 100755 --- a/cgi/listinfo +++ b/cgi/listinfo @@ -1,7 +1,7 @@ #!/usr/local/bin/python # We don't need to lock in this script, because we're never going to change data. -import sys, os +import sys, os, string f = open('/tmp/listinfo.err', 'a+') sys.stderr = f #sys.stdout from regsub import gsub @@ -19,7 +19,7 @@ if len(list_info) < 1: print doc.Format() sys.exit(0) -list_name = list_info[0] +list_name = string.lower(list_info[0]) try: list = maillist.MailList(list_name) diff --git a/cgi/options b/cgi/options index 3be1f4005..81d82f34e 100755 --- a/cgi/options +++ b/cgi/options @@ -1,7 +1,7 @@ #!/usr/local/bin/python # We don't need to lock in this script, because we're never going to change data. -import sys, os +import sys, os, string f = open('/tmp/options.errs', 'a+') sys.stderr = f # sys.stdout sys.path.append('/home/mailman/mailman/modules') @@ -17,7 +17,7 @@ if len(list_info) < 2: print doc.Format() sys.exit(0) -list_name = list_info[0] +list_name = string.lower()list_info[0] user = list_info[1] try: diff --git a/cgi/subscribe b/cgi/subscribe index b19882ef4..f69373695 100755 --- a/cgi/subscribe +++ b/cgi/subscribe @@ -2,7 +2,7 @@ f = open('/tmp/fart', 'a+') f.write("Test") f.flush() -import sys, os, cgi +import sys, os, cgi, string sys.stderr = f f.write('hello world') from regsub import gsub @@ -34,7 +34,7 @@ doc = htmlformat.Document() path = os.environ['PATH_INFO'] list_info = mm_utils.GetPathPieces(path) -list_name = list_info[0] +list_name = string.lower(list_info[0]) if len(list_info) < 1: doc.AddItem(htmlformat.Header(2, "Invalid options to CGI script.")) |
