probable fix for a bug reported by Prashant Jadhav

This commit is contained in:
Miroslav Stampar 2010-09-30 18:52:33 +00:00
parent cf8e92699c
commit 87abec16bd
2 changed files with 6 additions and 0 deletions

View File

@ -142,6 +142,9 @@ Mounir Idrassi <mounir.idrassi@idrix.net>
Daliev Ilya <daliser@yandex.ru>
for reporting a bug
Prashant Jadhav <prashantjadhav.82@gmail.com>
for reporting a bug
Dirk Jagdmann <doj@cubic.org>
for reporting a typo in the documentation

View File

@ -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("./", "/"))