From d6ccfd2ab31e681d546a87454c1f69183643965e Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 3 Feb 2024 11:29:33 +0200 Subject: [PATCH] fix path validation --- src/Dokuwiki/Filesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dokuwiki/Filesystem.php b/src/Dokuwiki/Filesystem.php index 8f91d04..6972e36 100644 --- a/src/Dokuwiki/Filesystem.php +++ b/src/Dokuwiki/Filesystem.php @@ -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