From f71b083e81f4cd9f6b898e4c78e81d36b87df10f Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 6 May 2024 05:27:21 +0300 Subject: [PATCH] validate absolute path constructed --- src/Model/Filesystem.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Model/Filesystem.php b/src/Model/Filesystem.php index 5bd52fb..10eb2a0 100644 --- a/src/Model/Filesystem.php +++ b/src/Model/Filesystem.php @@ -219,6 +219,11 @@ class Filesystem return null; } + if (!$this->valid($realpath)) + { + return null; + } + return $realpath; }