diff options
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/lib/smb.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_external/lib/smb.php b/apps/files_external/lib/smb.php index a6113140198..c554eaf19ee 100644 --- a/apps/files_external/lib/smb.php +++ b/apps/files_external/lib/smb.php @@ -45,6 +45,9 @@ class SMB extends Common { if (!$this->root || $this->root[0] != '/') { $this->root = '/' . $this->root; } + if (substr($this->root, -1, 1) != '/') { + $this->root .= '/'; + } } else { throw new \Exception('Invalid configuration'); } |