make sure the root has a trailing slash

remotes/origin/log-external-deletes
Robin Appelman 10 years ago committed by Thomas Müller
parent 35077ec34e
commit 6467369cad
  1. 3
      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');
}

Loading…
Cancel
Save