From: Robin Appelman Date: Fri, 13 Feb 2015 13:51:56 +0000 (+0100) Subject: make sure the root has a trailing slash X-Git-Tag: v8.1.0alpha1~493^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6467369cad5eebe9ade84cf9b61f12c4cbaff759;p=nextcloud-server.git make sure the root has a trailing slash --- 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'); }