fix bug: visit file in encrypted folder will add / at last

pull/610/head
qkqpttgf 2022-01-01 11:45:23 +00:00 committed by GitHub
parent d99ee1dadc
commit 8cf8c11cde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ function main($path)
$files = json_decode('{"type":"folder"}', true);
} elseif ($_SERVER['ishidden']==4) {
if (!getConfig('downloadencrypt', $_SERVER['disktag'])) {
$files = json_decode('{"type":"folder"}', true);
$files = json_decode('{"type":"file"}', true);
} else {
$files = $drive->list_files($path1);
if ($files['type']=='folder') $files = json_decode('{"type":"folder"}', true);