apps/files_external/lib/storage/ftp.php 1 location
|
@@ 55-57 (lines=3) @@
|
| 52 |
|
$this->secure = false; |
| 53 |
|
} |
| 54 |
|
$this->root=isset($params['root'])?$params['root']:'/'; |
| 55 |
|
if ( ! $this->root || $this->root[0]!='/') { |
| 56 |
|
$this->root='/'.$this->root; |
| 57 |
|
} |
| 58 |
|
if (substr($this->root, -1) !== '/') { |
| 59 |
|
$this->root .= '/'; |
| 60 |
|
} |
lib/private/Files/Storage/DAV.php 1 location
|
@@ 116-118 (lines=3) @@
|
| 113 |
|
} |
| 114 |
|
} |
| 115 |
|
$this->root = isset($params['root']) ? $params['root'] : '/'; |
| 116 |
|
if (!$this->root || $this->root[0] != '/') { |
| 117 |
|
$this->root = '/' . $this->root; |
| 118 |
|
} |
| 119 |
|
if (substr($this->root, -1, 1) != '/') { |
| 120 |
|
$this->root .= '/'; |
| 121 |
|
} |
apps/files_external/lib/storage/smb.php 1 location
|
@@ 88-90 (lines=3) @@
|
| 85 |
|
$this->share = $this->server->getShare(trim($params['share'], '/')); |
| 86 |
|
|
| 87 |
|
$this->root = isset($params['root']) ? $params['root'] : '/'; |
| 88 |
|
if (!$this->root || $this->root[0] != '/') { |
| 89 |
|
$this->root = '/' . $this->root; |
| 90 |
|
} |
| 91 |
|
if (substr($this->root, -1, 1) != '/') { |
| 92 |
|
$this->root .= '/'; |
| 93 |
|
} |