Update apps/files_external/lib/sftp.php

Added cleaning the root path
This commit is contained in:
hkjolhede 2013-01-26 19:46:23 +01:00
parent 2fa3efd697
commit a26d50640f
1 changed files with 1 additions and 1 deletions

View File

@ -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 .= '/';