mercurial/hgweb/hgweb_mod.py
changeset 6460 a63aed912e54
parent 6393 894875eae49b
parent 6459 8189e03adb44
child 6747 f6c00b17387c
child 6774 0dbb56e90a71
--- a/mercurial/hgweb/hgweb_mod.py	Thu Apr 03 11:18:43 2008 +0200
+++ b/mercurial/hgweb/hgweb_mod.py	Thu Apr 03 13:21:42 2008 +0200
@@ -123,8 +123,8 @@
         if 'REPO_NAME' in req.env:
             req.url += req.env['REPO_NAME'] + '/'
 
-        if req.env.get('PATH_INFO'):
-            parts = req.env.get('PATH_INFO').strip('/').split('/')
+        if 'PATH_INFO' in req.env:
+            parts = req.env['PATH_INFO'].strip('/').split('/')
             repo_parts = req.env.get('REPO_NAME', '').split('/')
             if parts[:len(repo_parts)] == repo_parts:
                 parts = parts[len(repo_parts):]