aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_external/lib/sftp.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/sftp.php b/apps/files_external/lib/sftp.php
index 22cb8d1651c..53956182977 100644
--- a/apps/files_external/lib/sftp.php
+++ b/apps/files_external/lib/sftp.php
@@ -27,7 +27,7 @@ class OC_Filestorage_SFTP extends OC_Filestorage_Common {
}
$this->user = $params['user'];
$this->password = $params['password'];
- $this->root = isset($params['root']) ? $params['root'] : '/';
+ $this->root = isset($params['root']) ? $this->cleanPath($params['root']) : '/';
if ($this->root[0] != '/') $this->root = '/' . $this->root;
if (substr($this->root, -1, 1) != '/') $this->root .= '/';