From 0486d01381c0144757ca741cc440d016d4241272 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Sun, 28 Feb 1999 00:29:04 +0000 Subject: main(), FormatAdminOverview(): take care of special cases where CGI extension needs to be added to script path. --- Mailman/Cgi/admin.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Mailman/Cgi/admin.py') diff --git a/Mailman/Cgi/admin.py b/Mailman/Cgi/admin.py index 438e361c1..07589d2ab 100644 --- a/Mailman/Cgi/admin.py +++ b/Mailman/Cgi/admin.py @@ -119,12 +119,12 @@ def main(): is_auth = isAuthenticated(lst) message = "" if not is_auth: + defaulturi = 'mailman/admin%s/%s' % (mm_cfg.CGIEXT, list_name) print "Content-type: text/html\n\n" text = Utils.maketext( 'admlogin.txt', {"listname": list_name, - "path" : os.environ.get("REQUEST_URI", - '/mailman/admin/' + list_name), + "path" : os.environ.get("REQUEST_URI", defaulturi), "message" : message, }) print text @@ -228,7 +228,8 @@ def FormatAdminOverview(error=None): % ((error and "the right ") or "")) + " General list information can be found at ", - Link("%slistinfo" % ('../' * Utils.GetNestingLevel()), + Link("%slistinfo%s" % ('../' * Utils.GetNestingLevel(), + mm_cfg.CGIEXT), "the mailing list overview page"), "." "
(Send questions and comments to ", -- cgit v1.2.3-70-g09d2