fix enbug of @aa24cf92d84cd560049ac6ed2390c82575540764

This commit is contained in:
nao-pon
2014-03-05 00:36:00 +09:00
parent 9837659ae6
commit 5b3b866784
+1 -1
View File
@@ -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;
}