diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-02-13 14:51:56 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-02-16 13:52:11 +0100 |
commit | 6467369cad5eebe9ade84cf9b61f12c4cbaff759 (patch) | |
tree | 7f979d7fafe72d71b5d3a16c306e08017d3797e4 /apps/files_external | |
parent | 35077ec34e2ac3814588234901cafee409702e37 (diff) | |
download | nextcloud-server-6467369cad5eebe9ade84cf9b61f12c4cbaff759.tar.gz nextcloud-server-6467369cad5eebe9ade84cf9b61f12c4cbaff759.zip |
make sure the root has a trailing slash
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'); } |