diff --git a/php/elFinderVolumeLocalFileSystem.class.php b/php/elFinderVolumeLocalFileSystem.class.php index c05b3d3368..46aac6ca15 100644 --- a/php/elFinderVolumeLocalFileSystem.class.php +++ b/php/elFinderVolumeLocalFileSystem.class.php @@ -95,7 +95,7 @@ protected function init() { } $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 @@ protected function _stat($path) { $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; }