Skip to content
Snippets Groups Projects
Commit e495b4ea authored by Robin Appelman's avatar Robin Appelman
Browse files

Merge pull request #9789 from owncloud/external-share-root

Fix remote share when remote server is installed at the root
parents 9834e385 97de7bb2
Branches
No related tags found
No related merge requests found
......@@ -49,7 +49,12 @@ class Storage extends DAV implements ISharedStorage {
$this->remote = $options['remote'];
$this->remoteUser = $options['owner'];
list($protocol, $remote) = explode('://', $this->remote);
if (strpos($remote, '/')) {
list($host, $root) = explode('/', $remote, 2);
} else {
$host = $remote;
$root = '';
}
$secure = $protocol === 'https';
$root = rtrim($root, '/') . '/public.php/webdav';
$this->mountPoint = $options['mountpoint'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment