Skip to content
Snippets Groups Projects
Commit db1e6b5f authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Use $dir instead of $fullpath

parent b13b19c5
No related branches found
No related tags found
No related merge requests found
......@@ -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 != '..' ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment