mirror of
https://github.com/YGGverse/gemini-php.git
synced 2025-01-13 08:38:01 +00:00
fix path validation
This commit is contained in:
parent
3cfef3ee67
commit
d6ccfd2ab3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user