summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-02-13 14:51:56 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-02-16 13:52:11 +0100
commit6467369cad5eebe9ade84cf9b61f12c4cbaff759 (patch)
tree7f979d7fafe72d71b5d3a16c306e08017d3797e4 /apps/files_external
parent35077ec34e2ac3814588234901cafee409702e37 (diff)
downloadnextcloud-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.php3
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');
}