fix path validation

This commit is contained in:
ghost 2024-02-03 11:29:33 +02:00
parent 3cfef3ee67
commit d6ccfd2ab3

View File

@ -165,7 +165,7 @@ class Filesystem
public function getData(string $path): ?string
{
if (isset($this->_list[$path]) && is_file($path) || is_readable($path))
if (in_array($path, $this->_list) && is_file($path) || is_readable($path))
{
return file_get_contents(
$path