Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 308117 | Differences between
and this patch

Collapse All | Expand All

(-)mercurial-1.4.1.orig/mercurial/hgweb/hgwebdir_mod.py (-1 / +1 lines)
Lines 227-233 Link Here
227
                parts = [name]
227
                parts = [name]
228
                if 'PATH_INFO' in req.env:
228
                if 'PATH_INFO' in req.env:
229
                    parts.insert(0, req.env['PATH_INFO'].rstrip('/'))
229
                    parts.insert(0, req.env['PATH_INFO'].rstrip('/'))
230
                if req.env['SCRIPT_NAME']:
230
                if 'SCRIPT_NAME' in req.env:
231
                    parts.insert(0, req.env['SCRIPT_NAME'])
231
                    parts.insert(0, req.env['SCRIPT_NAME'])
232
                m = re.match('((?:https?://)?)(.*)', '/'.join(parts))
232
                m = re.match('((?:https?://)?)(.*)', '/'.join(parts))
233
                # squish repeated slashes out of the path component
233
                # squish repeated slashes out of the path component

Return to bug 308117