diff --git a/libraries/kunena/upload/upload.php b/libraries/kunena/upload/upload.php index 0ddfc0cdda1..f02c5d2a987 100644 --- a/libraries/kunena/upload/upload.php +++ b/libraries/kunena/upload/upload.php @@ -621,7 +621,7 @@ public function upload($fileInput, $destination, $type = 'attachment') } } - if (exif_imagetype($file->tmp_name)) + if (!$file->isAvatar && stripos($type, 'image/') !== false) { if (!$this->checkFileSizeImageAttachment($file->size)) { @@ -629,7 +629,7 @@ public function upload($fileInput, $destination, $type = 'attachment') } } - if (!exif_imagetype($file->tmp_name)) + if (!$file->isAvatar && stripos($type, 'image/') !== true) { if (!$this->checkFileSizeFileAttachment($file->size)) {