Update index.php

pull/13/head
qkqpttgf 2020-01-06 13:21:41 +08:00 committed by GitHub
parent e12abc4704
commit fe2b2ed621
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -380,8 +380,8 @@ function adminoperate($path)
$data = '{"parentReference":{"path": "/drive/root:'.$foldername.'"}}'; $data = '{"parentReference":{"path": "/drive/root:'.$foldername.'"}}';
$result = MSAPI('PATCH', $filename, $data, $_SERVER['access_token']); $result = MSAPI('PATCH', $filename, $data, $_SERVER['access_token']);
$cache->save('path_' . $path1, json_decode('{}',true), 1); $cache->save('path_' . $path1, json_decode('{}',true), 1);
if ($_GET['move_folder'] == '/../') $path2 = path_format( substr($path1, 0, strrpos($path1, '/')) ); if ($_GET['move_folder'] == '/../') $path2 = path_format( substr($path1, 0, strrpos($path1, '/')) . '/' );
else $path2 = path_format( $path1 . '/' . $_GET['move_folder'] ); else $path2 = path_format( $path1 . '/' . $_GET['move_folder'] . '/' );
$cache->save('path_' . $path2, json_decode('{}',true), 1); $cache->save('path_' . $path2, json_decode('{}',true), 1);
return output($result['body'], $result['stat']); return output($result['body'], $result['stat']);
} else { } else {