Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/hgwebdir_mod.py @ 5970:f25070ecf334
hgweb: fixes to make hg serve prefix handling more robust
author | Michele Cella <michele.cella@gmail.com> |
---|---|
date | Tue, 22 Jan 2008 22:13:29 +0100 |
parents | abe373e16fe6 |
children | 9f1e6ab76069 |
comparison
equal
deleted
inserted
replaced
5969:821fc5c0656c | 5970:f25070ecf334 |
---|---|
170 return u.config(section, name, default, untrusted=True) | 170 return u.config(section, name, default, untrusted=True) |
171 | 171 |
172 if u.configbool("web", "hidden", untrusted=True): | 172 if u.configbool("web", "hidden", untrusted=True): |
173 continue | 173 continue |
174 | 174 |
175 parts = [req.env['PATH_INFO'], name] | 175 parts = [req.env['PATH_INFO'].strip('/'), name] |
176 if req.env['SCRIPT_NAME']: | 176 if req.env['SCRIPT_NAME']: |
177 parts.insert(0, req.env['SCRIPT_NAME']) | 177 parts.insert(0, req.env['SCRIPT_NAME']) |
178 url = ('/'.join(parts).replace("//", "/")) + '/' | 178 url = ('/'.join(parts).replace("//", "/")) + '/' |
179 | 179 |
180 # update time with local timezone | 180 # update time with local timezone |