summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormailman1998-04-08 04:50:33 +0000
committermailman1998-04-08 04:50:33 +0000
commitdb341e780f97d94494ad2a6940abe5c20a377251 (patch)
treede1ef122f16e21bcca07bdccf40a824b1520b69f
parent63caa0bfcbd065b192b97ca36b98d695671f90ce (diff)
downloadmailman-db341e780f97d94494ad2a6940abe5c20a377251.tar.gz
mailman-db341e780f97d94494ad2a6940abe5c20a377251.tar.zst
mailman-db341e780f97d94494ad2a6940abe5c20a377251.zip
Whoops - had wrong label on the sys.stderr logger...
-rwxr-xr-xcgi/admindb11
-rwxr-xr-xcgi/archives2
2 files changed, 7 insertions, 6 deletions
diff --git a/cgi/admindb b/cgi/admindb
index 93c412810..8ddfbff91 100755
--- a/cgi/admindb
+++ b/cgi/admindb
@@ -7,7 +7,7 @@ import os, cgi, string, crypt, types
import mm_utils, maillist, mm_err, htmlformat
try:
- sys.stderr = mm_utils.StampedLogger("error", label = 'mmroster',
+ sys.stderr = mm_utils.StampedLogger("error", label = 'admindb',
manual_reprime=1, nofail=0)
except IOError:
pass # Oh well - SOL on redirect, errors show thru.
@@ -20,7 +20,7 @@ list_info = mm_utils.GetPathPieces(path)
if len(list_info) < 1:
doc.AddItem(htmlformat.Header(2, "Invalid options to CGI script."))
- print doc.Format()
+ print doc.Format(bgcolor="#ffffff")
sys.exit(0)
list_name = string.lower(list_info[0])
@@ -29,12 +29,12 @@ try:
list = maillist.MailList(list_name)
except:
doc.AddItem(htmlformat.Header(2, "%s: No such list." % list_name))
- print doc.Format()
+ print doc.Format(bgcolor="#ffffff")
sys.exit(0)
if not list._ready:
doc.AddItem(htmlformat.Header(2, "%s: No such list." % list_name))
- print doc.Format()
+ print doc.Format(bgcolor="#ffffff")
sys.exit(0)
# Note, these 2 functions use i only to count the number of times to
@@ -84,6 +84,7 @@ def HandleRequests(doc):
SubscribeNone()
for k in form.keys():
try:
+ # XXX Security?!
v = eval(form[k].value)
request_id = eval(k)
except: # For stuff like adminpw
@@ -207,7 +208,7 @@ try:
if len(form.keys()):
HandleRequests(doc)
PrintRequests(doc)
- text = doc.Format()
+ text = doc.Format(bgcolor="#ffffff")
print text
sys.stdout.flush()
finally:
diff --git a/cgi/archives b/cgi/archives
index 28c2106e6..92c1aef24 100755
--- a/cgi/archives
+++ b/cgi/archives
@@ -8,7 +8,7 @@ import os, types, posix, string
import mm_utils, maillist, htmlformat
try:
- sys.stderr = mm_utils.StampedLogger("error", label = 'mmroster',
+ sys.stderr = mm_utils.StampedLogger("error", label = 'archives',
manual_reprime=1, nofail=0)
except IOError:
pass # Oh well - SOL on redirect, errors show thru.