mirror of
https://github.com/filegator/filegator.git
synced 2025-08-11 01:33:58 +02:00
v7.4.4 fixes #116
This commit is contained in:
@@ -234,6 +234,9 @@ class Filesystem implements Service
|
||||
|
||||
private function applyPathPrefix(string $path): string
|
||||
{
|
||||
if (strpos($path, '..') !== false) {
|
||||
$path = "/";
|
||||
}
|
||||
return $this->joinPaths($this->getPathPrefix(), $path);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user