Show More
@@ -653,11 +653,11 b' class hgweb(object):' | |||||
653 | def firstitem(query): |
|
653 | def firstitem(query): | |
654 | return query.split('&', 1)[0].split(';', 1)[0] |
|
654 | return query.split('&', 1)[0].split(';', 1)[0] | |
655 |
|
655 | |||
656 | base = '' |
|
656 | root = req.env.get('SCRIPT_NAME', '') | |
657 | if req.env.has_key('REPO_NAME'): |
|
657 | if req.env.has_key('REPO_NAME'): | |
658 | base = '/' + req.env['REPO_NAME'] |
|
658 | base = '/' + req.env['REPO_NAME'] | |
659 | elif req.env.get('SCRIPT_NAME'): |
|
659 | else: | |
660 |
base = r |
|
660 | base = root | |
661 |
|
661 | |||
662 | pi = req.env.get('PATH_INFO') |
|
662 | pi = req.env.get('PATH_INFO') | |
663 | if pi: |
|
663 | if pi: | |
@@ -681,7 +681,7 b' class hgweb(object):' | |||||
681 | base += '?' |
|
681 | base += '?' | |
682 | query = firstitem(req.env['QUERY_STRING']) |
|
682 | query = firstitem(req.env['QUERY_STRING']) | |
683 |
|
683 | |||
684 | return (base, query) |
|
684 | return (root + base, query) | |
685 |
|
685 | |||
686 | req.url, query = spliturl(req) |
|
686 | req.url, query = spliturl(req) | |
687 |
|
687 |
General Comments 0
You need to be logged in to leave comments.
Login now