apps/files_external/lib/ftp.php 1 location
|
@@ 53-55 (lines=3) @@
|
50 |
|
$this->secure = false; |
51 |
|
} |
52 |
|
$this->root=isset($params['root'])?$params['root']:'/'; |
53 |
|
if ( ! $this->root || $this->root[0]!='/') { |
54 |
|
$this->root='/'.$this->root; |
55 |
|
} |
56 |
|
if (substr($this->root, -1) !== '/') { |
57 |
|
$this->root .= '/'; |
58 |
|
} |
lib/private/files/storage/dav.php 1 location
|
@@ 113-115 (lines=3) @@
|
110 |
|
} |
111 |
|
} |
112 |
|
$this->root = isset($params['root']) ? $params['root'] : '/'; |
113 |
|
if (!$this->root || $this->root[0] != '/') { |
114 |
|
$this->root = '/' . $this->root; |
115 |
|
} |
116 |
|
if (substr($this->root, -1, 1) != '/') { |
117 |
|
$this->root .= '/'; |
118 |
|
} |
apps/files_external/lib/smb.php 1 location
|
@@ 73-75 (lines=3) @@
|
70 |
|
$this->share = $this->server->getShare(trim($params['share'], '/')); |
71 |
|
|
72 |
|
$this->root = isset($params['root']) ? $params['root'] : '/'; |
73 |
|
if (!$this->root || $this->root[0] != '/') { |
74 |
|
$this->root = '/' . $this->root; |
75 |
|
} |
76 |
|
if (substr($this->root, -1, 1) != '/') { |
77 |
|
$this->root .= '/'; |
78 |
|
} |