diff -r da7524149787 -r a63aed912e54 mercurial/hgweb/hgweb_mod.py --- 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):]