fix bug: visit file in encrypted folder will add / at last
parent
d99ee1dadc
commit
8cf8c11cde
|
@ -352,7 +352,7 @@ function main($path)
|
||||||
$files = json_decode('{"type":"folder"}', true);
|
$files = json_decode('{"type":"folder"}', true);
|
||||||
} elseif ($_SERVER['ishidden']==4) {
|
} elseif ($_SERVER['ishidden']==4) {
|
||||||
if (!getConfig('downloadencrypt', $_SERVER['disktag'])) {
|
if (!getConfig('downloadencrypt', $_SERVER['disktag'])) {
|
||||||
$files = json_decode('{"type":"folder"}', true);
|
$files = json_decode('{"type":"file"}', true);
|
||||||
} else {
|
} else {
|
||||||
$files = $drive->list_files($path1);
|
$files = $drive->list_files($path1);
|
||||||
if ($files['type']=='folder') $files = json_decode('{"type":"folder"}', true);
|
if ($files['type']=='folder') $files = json_decode('{"type":"folder"}', true);
|
||||||
|
|
Loading…
Reference in New Issue