mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
fix enbug of @aa24cf92d84cd560049ac6ed2390c82575540764
This commit is contained in:
@@ -240,7 +240,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
||||
$real_path = realpath($path);
|
||||
$real_parent = realpath($parent);
|
||||
if ($real_path && $real_parent) {
|
||||
return $path === $parent || strpos($real_path, $real_parent.DIRECTORY_SEPARATOR) === 0;
|
||||
return $real_path === $real_parent || strpos($real_path, $real_parent.DIRECTORY_SEPARATOR) === 0;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user