mirror of
https://github.com/YGGverse/next.git
synced 2026-03-31 17:55:34 +00:00
validate absolute path constructed
This commit is contained in:
parent
502fb9c74c
commit
f71b083e81
1 changed files with 5 additions and 0 deletions
|
|
@ -219,6 +219,11 @@ class Filesystem
|
|||
return null;
|
||||
}
|
||||
|
||||
if (!$this->valid($realpath))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return $realpath;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue