Commit 7db04e7c authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #817379: Allow for absolute ftp paths.

Backported to 2.3.
parent 32d23c92
......@@ -1099,8 +1099,8 @@ class FTPHandler(BaseHandler):
if port is None:
port = ftplib.FTP_PORT
path, attrs = splitattr(req.get_selector())
path = unquote(path)
dirs = path.split('/')
dirs = map(unquote, dirs)
dirs, file = dirs[:-1], dirs[-1]
if dirs and not dirs[0]:
dirs = dirs[1:]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment