fix: get hidden filename via json

pull/360/head
qkqpttgf 2021-06-20 17:57:08 +08:00 committed by GitHub
parent 86ba05b5be
commit 74bb87ef15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -347,6 +347,11 @@ function main($path)
if ($path1!='/'&&substr($path1,-1)=='/') $path1=substr($path1, 0, -1);
$files = $drive->list_files($path1);
}
if ($files['type']=='folder' && !$_SERVER['admin']) {
foreach ($files['list'] as $k => $v) {
if (isHideFile($k)) unset($files['list'][$k]);
}
}
if ($_GET['json']) {
// return a json