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
|
@@ 72-74 (lines=3) @@
|
| 69 |
|
$this->share = $this->server->getShare(trim($params['share'], '/')); |
| 70 |
|
|
| 71 |
|
$this->root = isset($params['root']) ? $params['root'] : '/'; |
| 72 |
|
if (!$this->root || $this->root[0] != '/') { |
| 73 |
|
$this->root = '/' . $this->root; |
| 74 |
|
} |
| 75 |
|
if (substr($this->root, -1, 1) != '/') { |
| 76 |
|
$this->root .= '/'; |
| 77 |
|
} |