summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2020-03-30 10:06:39 +0200
committerGitHub <noreply@github.com>2020-03-30 10:06:39 +0200
commitfa4162e86f701e9d325619255a3f91ff45994ab6 (patch)
tree7bc51b46361f146bf9271998b4827fe0eaa5c7c2 /apps/files_external
parent20ecbd60fd88a35f424771721a88eb66dbd55808 (diff)
parentef7bb5225a78069eccbb97e8eba868f0215344ed (diff)
downloadnextcloud-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.php2
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;