normalize sftp path in read stream

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2020-05-20 13:33:26 +02:00
parent 809d5bdc50
commit 85cd63de2c
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
1 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,8 @@ class SFTPReadStream implements File {
$logger = \OC::$server->getLogger();
[, $path] = explode('://', $path);
$path = '/' . ltrim($path);
$path = str_replace('//', '/', $path);
$logger->warning("Opened sftp path: $path");
$this->loadContext('sftp');