mirror of
https://github.com/YGGverse/next.git
synced 2026-04-01 18:25:29 +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;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!$this->valid($realpath))
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return $realpath;
|
return $realpath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue