From 724f357fc4d70be5827ddaf083792679089d375c Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Wed, 10 Nov 2021 18:40:24 +0800 Subject: [PATCH] fix: too many redirect in SCF long link --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index 87fc498..a2723a1 100644 --- a/common.php +++ b/common.php @@ -358,7 +358,7 @@ function main($path) } else { $files = $drive->list_files($path1); } - if ( $files['type']=='folder' && substr($path, -1)!=='/' ) { + if ($path!=='') if ( $files['type']=='folder' && substr($path, -1)!=='/' ) { $tmp = path_format($_SERVER['base_disk_path'] . $path . '/'); return output('