mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Use $dir instead of $fullpath
This commit is contained in:
parent
b13b19c58b
commit
db1e6b5f3b
1 changed files with 1 additions and 2 deletions
|
|
@ -21,8 +21,7 @@ $dir = isset($_GET['dir']) ? stripslashes($_GET['dir']) : '';
|
|||
$result = array();
|
||||
if ($dir) {
|
||||
$dirlisting = true;
|
||||
$fullpath = \OCP\Config::getSystemValue('datadirectory').$view->getAbsolutePath($dir);
|
||||
$dirContent = $view->opendir($fullpath);
|
||||
$dirContent = $view->opendir($dir);
|
||||
$i = 0;
|
||||
while($entryName = readdir($dirContent)) {
|
||||
if ( $entryName != '.' && $entryName != '..' ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue