ref: 3ebb9189670d11ca4cbae0428e91e1b41786502c
parent: 38411f3ca9c404af74baab90fa6267697be0099f
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Mon Sep 10 18:20:40 EDT 2012
hgwebfs: remove prefixing // from file path
--- a/sys/lib/python/hgext/hgwebfs.py
+++ b/sys/lib/python/hgext/hgwebfs.py
@@ -10,8 +10,11 @@
else:
self.url = req.get_full_url()
if self.url[0:5] == 'file:':
+ path = self.url[5:]
+ while path[0:2] == '//':
+ path = path[1:]
self.dir = '/dev/null'
- self.body = open(self.url[5:], 'r', 0)
+ self.body = open(path, 'r', 0)
return
ctl = open(mnt+'/clone', 'r+', 0)
try:
--
⑨