mercurial/hgweb/hgwebdir_mod.py
changeset 6046 588ad9227b63
parent 5993 948a41e77902
child 6210 942287cb1f57
equal deleted inserted replaced
6045:012ad48a07fa 6046:588ad9227b63
   175                     return u.config(section, name, default, untrusted=True)
   175                     return u.config(section, name, default, untrusted=True)
   176 
   176 
   177                 if u.configbool("web", "hidden", untrusted=True):
   177                 if u.configbool("web", "hidden", untrusted=True):
   178                     continue
   178                     continue
   179 
   179 
   180                 parts = [req.env['PATH_INFO'].strip('/'), name]
   180                 parts = [req.env['PATH_INFO'].rstrip('/'), name]
   181                 if req.env['SCRIPT_NAME']:
   181                 if req.env['SCRIPT_NAME']:
   182                     parts.insert(0, req.env['SCRIPT_NAME'])
   182                     parts.insert(0, req.env['SCRIPT_NAME'])
   183                 url = ('/'.join(parts).replace("//", "/")) + '/'
   183                 url = ('/'.join(parts).replace("//", "/")) + '/'
   184 
   184 
   185                 # update time with local timezone
   185                 # update time with local timezone