From fe2b2ed6212e56f2daacf0d5e25796f71f6c3ed8 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Mon, 6 Jan 2020 13:21:41 +0800 Subject: [PATCH] Update index.php --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 98b5d94..fda7c6d 100644 --- a/index.php +++ b/index.php @@ -380,8 +380,8 @@ function adminoperate($path) $data = '{"parentReference":{"path": "/drive/root:'.$foldername.'"}}'; $result = MSAPI('PATCH', $filename, $data, $_SERVER['access_token']); $cache->save('path_' . $path1, json_decode('{}',true), 1); - if ($_GET['move_folder'] == '/../') $path2 = path_format( substr($path1, 0, strrpos($path1, '/')) ); - else $path2 = path_format( $path1 . '/' . $_GET['move_folder'] ); + if ($_GET['move_folder'] == '/../') $path2 = path_format( substr($path1, 0, strrpos($path1, '/')) . '/' ); + else $path2 = path_format( $path1 . '/' . $_GET['move_folder'] . '/' ); $cache->save('path_' . $path2, json_decode('{}',true), 1); return output($result['body'], $result['stat']); } else {