summaryrefslogtreecommitdiff
path: root/modules/mm_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mm_utils.py')
-rw-r--r--modules/mm_utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/mm_utils.py b/modules/mm_utils.py
index cd04ff1f6..e76ac1920 100644
--- a/modules/mm_utils.py
+++ b/modules/mm_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