baseDir has to be the whole path to work with shared directories below the root directory.

This commit is contained in:
Björn Schießle 2012-10-04 17:18:21 +02:00
parent b88a61c633
commit a611ce4f33
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ if (isset($_GET['file']) || isset($_GET['dir'])) {
if (isset($_GET['dir'])) {
$type = 'folder';
$path = $_GET['dir'];
$baseDir = basename($path);
$baseDir = $path;
$dir = $baseDir;
} else {
$type = 'file';