From 2e8718fb3a8dc4a2f01ec357a9678e6d7d345c7c Mon Sep 17 00:00:00 2001 From: Alexander Minkin Date: Mon, 22 Jul 2024 00:57:25 +0300 Subject: [PATCH] fix(Upload): correct use of explode() function --- app/Controllers/Api/Images/Upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/Api/Images/Upload.php b/app/Controllers/Api/Images/Upload.php index f7591e1..b63208c 100644 --- a/app/Controllers/Api/Images/Upload.php +++ b/app/Controllers/Api/Images/Upload.php @@ -105,7 +105,7 @@ class Upload 'type' => 'none', ) ); - } else if (explode($type, '/')[0] === 'image') { + } else if (explode('/', $type)[0] === 'image') { $exif = new EXIF($_FILES['image']['tmp_name']);