baseDir has to be the whole path to work with shared directories below the root directory.
This commit is contained in:
parent
b88a61c633
commit
a611ce4f33
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue