optimize of #542

This commit is contained in:
nao-pon
2013-04-18 16:48:48 +09:00
parent ba6bcc45ea
commit 165409cc35
+2 -2
View File
@@ -264,8 +264,8 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
}
//Verifies the given path is the root or is inside the root. Prevents directory traveral.
if($path !== $this->root && strpos(realpath($path), realpath($this->root).DIRECTORY_SEPARATOR) !== 0){
return $stat;
if (!$this->_inpath(realpath($path), $this->aroot)) {
return $stat;
}
if ($path != $this->root && is_link($path)) {