From 6c0d8142ba76931b4223f3726b3f62c7367c8f91 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Tue, 21 Jan 2014 11:30:21 +0100 Subject: [PATCH] [FIX] document_ftp: allow to use '..' command when traveling in ftp directories lp bug: https://launchpad.net/bugs/734892 fixed bzr revid: mat@openerp.com-20140121103021-mv9gcv4iprary0ac --- addons/document_ftp/ftpserver/abstracted_fs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/document_ftp/ftpserver/abstracted_fs.py b/addons/document_ftp/ftpserver/abstracted_fs.py index a9efac5819c..5e81931d00b 100644 --- a/addons/document_ftp/ftpserver/abstracted_fs.py +++ b/addons/document_ftp/ftpserver/abstracted_fs.py @@ -260,6 +260,7 @@ class abstracted_fs(object): if path == '/' and mode in ('list', 'cwd'): return (None, None, None ) + if path == '..': path = self.cwd + '/..' path = _to_unicode(os.path.normpath(path)) # again, for '/db/../ss' if path == '.': path = ''