From 87abec16bd2bd2fcc9a11a2e649564101be0b17e Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 30 Sep 2010 18:52:33 +0000 Subject: [PATCH] probable fix for a bug reported by Prashant Jadhav --- doc/THANKS | 3 +++ lib/takeover/web.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/doc/THANKS b/doc/THANKS index cb8c4e4a2..0db6cd35d 100644 --- a/doc/THANKS +++ b/doc/THANKS @@ -142,6 +142,9 @@ Mounir Idrassi Daliev Ilya for reporting a bug +Prashant Jadhav + for reporting a bug + Dirk Jagdmann for reporting a typo in the documentation diff --git a/lib/takeover/web.py b/lib/takeover/web.py index 6fece8ffe..3f41ca9ae 100644 --- a/lib/takeover/web.py +++ b/lib/takeover/web.py @@ -192,6 +192,9 @@ class Web: requestDir = normalizePath(requestDir) + if requestDir[0] != '/': + requestDir = '/' + requestDir + self.webBaseUrl = "%s://%s:%d%s" % (conf.scheme, conf.hostname, conf.port, requestDir) self.webUploaderUrl = "%s/%s" % (self.webBaseUrl.rstrip('/'), uploaderName) self.webUploaderUrl = ntToPosixSlashes(self.webUploaderUrl.replace("./", "/"))