fix: too many redirect in SCF long link

This commit is contained in:
qkqpttgf
2021-11-10 18:40:24 +08:00
committed by GitHub
parent 2f48674ef8
commit 724f357fc4
+1 -1
View File
@@ -358,7 +358,7 @@ function main($path)
} else { } else {
$files = $drive->list_files($path1); $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 . '/'); $tmp = path_format($_SERVER['base_disk_path'] . $path . '/');
return output('<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> return output('<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head> <html><head>