[FIX] document_ftp : when connecting using FTP client FileZilla and clicking on database named directory after logged in, it gives Invalid database path error
bzr revid: mma@tinyerp.com-20121031122304-6ss91ml1ncnmah1f
This commit is contained in:
@@ -272,7 +272,7 @@ class abstracted_fs(object):
|
||||
if path.startswith('/'):
|
||||
path = path[1:]
|
||||
|
||||
p_parts = path.split('/') # hard-code the unix sep here, by spec.
|
||||
p_parts = path.split(os.sep) # hard-code the unix sep here, by spec.
|
||||
|
||||
assert '..' not in p_parts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user