normalize sftp path in read stream
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
809d5bdc50
commit
85cd63de2c
|
@ -84,6 +84,8 @@ class SFTPReadStream implements File {
|
||||||
$logger = \OC::$server->getLogger();
|
$logger = \OC::$server->getLogger();
|
||||||
|
|
||||||
[, $path] = explode('://', $path);
|
[, $path] = explode('://', $path);
|
||||||
|
$path = '/' . ltrim($path);
|
||||||
|
$path = str_replace('//', '/', $path);
|
||||||
$logger->warning("Opened sftp path: $path");
|
$logger->warning("Opened sftp path: $path");
|
||||||
$this->loadContext('sftp');
|
$this->loadContext('sftp');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue