lib/private/Files/View.php 1 location
|
@@ 179-188 (lines=10) @@
|
| 176 |
|
// missing slashes can cause wrong matches! |
| 177 |
|
$root = rtrim($this->fakeRoot, '/') . '/'; |
| 178 |
|
|
| 179 |
|
if (strpos($path, $root) !== 0) { |
| 180 |
|
return null; |
| 181 |
|
} else { |
| 182 |
|
$path = substr($path, strlen($this->fakeRoot)); |
| 183 |
|
if (strlen($path) === 0) { |
| 184 |
|
return '/'; |
| 185 |
|
} else { |
| 186 |
|
return $path; |
| 187 |
|
} |
| 188 |
|
} |
| 189 |
|
} |
| 190 |
|
|
| 191 |
|
/** |
lib/private/Files/Storage/Wrapper/Jail.php 1 location
|
@@ 64-69 (lines=6) @@
|
| 61 |
|
public function getJailedPath($path) { |
| 62 |
|
$root = rtrim($this->rootPath, '/') . '/'; |
| 63 |
|
|
| 64 |
|
if (strpos($path, $root) !== 0) { |
| 65 |
|
return null; |
| 66 |
|
} else { |
| 67 |
|
$path = substr($path, strlen($this->rootPath)); |
| 68 |
|
return trim($path, '/'); |
| 69 |
|
} |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
public function getId() { |