diff options
| author | tkikuchi | 2006-11-13 12:29:34 +0000 |
|---|---|---|
| committer | tkikuchi | 2006-11-13 12:29:34 +0000 |
| commit | 367f816c741607f3b8e0846fc13abaf60374a909 (patch) | |
| tree | 544914b399ec530bfa94318aab5d0bd611b74cb9 /Mailman/Cgi/Auth.py | |
| parent | 425a8297a9987800f62cf61d47a916d026028864 (diff) | |
| download | mailman-367f816c741607f3b8e0846fc13abaf60374a909.tar.gz mailman-367f816c741607f3b8e0846fc13abaf60374a909.tar.zst mailman-367f816c741607f3b8e0846fc13abaf60374a909.zip | |
Fix environ['SCRIPT_NAME'] to match CGI spec.
Also, the now scripts can be accessed by arbitrary script base.
E.g. /listinfo can be accessed by /mailman/listinfo or /mailman/blah/listinfo
etc. etc. This is useful in testing wsgi directly without apache frontend
but we may have to limit the length or depth of prefixed script base.
Diffstat (limited to 'Mailman/Cgi/Auth.py')
| -rw-r--r-- | Mailman/Cgi/Auth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mailman/Cgi/Auth.py b/Mailman/Cgi/Auth.py index 98e9fe49d..7954acfb2 100644 --- a/Mailman/Cgi/Auth.py +++ b/Mailman/Cgi/Auth.py @@ -38,7 +38,7 @@ def loginpage(mlist, scriptname, msg='', frontpage=False): if frontpage: actionurl = url else: - request = Utils.GetRequestURI(url) + request = Utils.GetRequestURI(url).lstrip('/') up = '../' * request.count('/') actionurl = up + request if msg: |
