From 8cf8c11cdefd419f014786a20c12c2ed39fb7148 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sat, 1 Jan 2022 11:45:23 +0000 Subject: [PATCH] fix bug: visit file in encrypted folder will add / at last --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index 0fe8a32..efb0cb6 100644 --- a/common.php +++ b/common.php @@ -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);