mirror of
https://github.com/YGGverse/gemini-php.git
synced 2026-04-01 09:25:29 +00:00
fix path validation
This commit is contained in:
parent
3cfef3ee67
commit
d6ccfd2ab3
1 changed files with 1 additions and 1 deletions
|
|
@ -165,7 +165,7 @@ class Filesystem
|
||||||
|
|
||||||
public function getData(string $path): ?string
|
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(
|
return file_get_contents(
|
||||||
$path
|
$path
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue