comparison mercurial/hgweb.py @ 1119:7fca9752d945

Protect against unknown repositories.
author roberto@keltia.freenix.fr
date Sat, 27 Aug 2005 23:42:51 -0700
parents 87cbfaf79124
children df25ee778ac2
comparison
equal deleted inserted replaced
1118:63b5f68d8167 1119:7fca9752d945
937 virtual = os.environ["PATH_INFO"] 937 virtual = os.environ["PATH_INFO"]
938 except: 938 except:
939 virtual = "" 939 virtual = ""
940 940
941 if virtual[1:]: 941 if virtual[1:]:
942 real = self.cp.get("paths", virtual[1:]) 942 if self.cp.has_option("paths", virtual[1:]):
943 h = hgweb(real) 943 real = self.cp.get("paths", virtual[1:])
944 h.run() 944 h = hgweb(real)
945 return 945 h.run()
946 return
946 947
947 def header(**map): 948 def header(**map):
948 yield tmpl("header", **map) 949 yield tmpl("header", **map)
949 950
950 def footer(**map): 951 def footer(**map):