src build elFinder-2.1-4310d83

This commit is contained in:
nao-pon
2017-02-24 12:05:44 +09:00
parent 8d8bbc646e
commit cb65b6a5de
6 changed files with 31 additions and 25 deletions
+3 -1
View File
@@ -95,7 +95,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
}
$this->root = $this->getFullPath($this->root, $cwd);
if (!empty($this->options['startPath'])) {
$this->options['startPath'] = $this->getFullPath($this->options['startPath'], $cwd);
$this->options['startPath'] = $this->getFullPath($this->options['startPath'], $this->root);
}
if (is_null($this->options['syncChkAsTs'])) {
@@ -442,11 +442,13 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
$stat = array();
if (!file_exists($path) && !is_link($path)) {
debug($path);
return $stat;
}
//Verifies the given path is the root or is inside the root. Prevents directory traveral.
if (!$this->_inpath($path, $this->root)) {
debug($path, $this->root);
return $stat;
}