diff options
Diffstat (limited to 'Mailman/Utils.py')
| -rw-r--r-- | Mailman/Utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py index cd04ff1f6..e76ac1920 100644 --- a/Mailman/Utils.py +++ b/Mailman/Utils.py @@ -229,7 +229,9 @@ def GetNestingLevel(): if nesting_level == None: try: path = os.environ['PATH_INFO'] - nesting_level = len(string.split(os.environ['PATH_INFO'], '/')) - 1 + if path[0] <> '/': + path= '/' + path + nesting_level = len(string.split(path, '/')) - 1 except KeyError: nesting_level = 0 return nesting_level |
