X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=blobdiff_plain;f=cmd%2Fweb-cmd.py;h=4add17c1ca20237d10854ce0482ce7ff5d39aa39;hp=47817f0e3cdf82182630303e59034cef071a2f30;hb=a90bf7336600c488fa0696b7d202247bd0533c36;hpb=52ce09ea949d3440023538f6b445b4e6f7e64173 diff --git a/cmd/web-cmd.py b/cmd/web-cmd.py index 47817f0..4add17c 100755 --- a/cmd/web-cmd.py +++ b/cmd/web-cmd.py @@ -84,6 +84,12 @@ def _compute_dir_contents(n, path, show_hidden=False): class BupRequestHandler(tornado.web.RequestHandler): + + def decode_argument(self, value, name=None): + if name == 'path': + return value + return super(BupRequestHandler, self).decode_argument(value, name) + def get(self, path): return self._process_request(path) @@ -248,7 +254,7 @@ settings = dict( sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) application = tornado.web.Application([ - (r"(/.*)", BupRequestHandler), + (r"(?P/.*)", BupRequestHandler), ], **settings) http_server = HTTPServer(application)