fix: too many redirect in SCF long link

pull/471/head
qkqpttgf 2021-11-10 18:40:24 +08:00 committed by GitHub
parent 2f48674ef8
commit 724f357fc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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>