diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2020-03-30 10:06:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-30 10:06:39 +0200 |
commit | fa4162e86f701e9d325619255a3f91ff45994ab6 (patch) | |
tree | 7bc51b46361f146bf9271998b4827fe0eaa5c7c2 /apps/files_external | |
parent | 20ecbd60fd88a35f424771721a88eb66dbd55808 (diff) | |
parent | ef7bb5225a78069eccbb97e8eba868f0215344ed (diff) | |
download | nextcloud-server-fa4162e86f701e9d325619255a3f91ff45994ab6.tar.gz nextcloud-server-fa4162e86f701e9d325619255a3f91ff45994ab6.zip |
Merge pull request #20208 from nextcloud/smb-folder-contents-normalize-path
normalize smb path while listing folder contents
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/lib/Lib/Storage/SMB.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php index 8f7d594cd67..e2b925e07a2 100644 --- a/apps/files_external/lib/Lib/Storage/SMB.php +++ b/apps/files_external/lib/Lib/Storage/SMB.php @@ -207,7 +207,7 @@ class SMB extends Common implements INotifyStorage { */ protected function getFolderContents($path) { try { - $path = $this->buildPath($path); + $path = ltrim($this->buildPath($path), '/'); $files = $this->share->dir($path); foreach ($files as $file) { $this->statCache[$path . '/' . $file->getName()] = $file; |