mirror of
https://github.com/optim-enterprises-bv/control-pane.git
synced 2025-11-01 18:38:03 +00:00
fix typo
This commit is contained in:
@@ -24,11 +24,8 @@ if($_SERVER['REQUEST_METHOD'] === 'POST'){
|
||||
// https://www.php.net/manual/en/features.file-upload.php
|
||||
// Undefined | Multiple Files | $_FILES Corruption Attack
|
||||
// If this request falls under any of them, treat it invalid.
|
||||
if (
|
||||
!isset($_FILES['file']['error']) ||
|
||||
is_array($_FILES['file']['error'])
|
||||
) {
|
||||
echo json_encode(array('status' => 'Upload Fail: An error occurred!';));
|
||||
if (!isset($_FILES['file']['error']) || is_array($_FILES['file']['error'])) {
|
||||
echo json_encode( array( 'status'=>'Upload Fail: An error occurred!'));
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user