Skip to content

Commit

Permalink
Test: Fix Fileupload on Missing Extension
Browse files Browse the repository at this point in the history
  • Loading branch information
kergomard committed Oct 1, 2024
1 parent bc84942 commit c5bc0d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/TestQuestionPool/classes/class.assFileUpload.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ public function checkUpload(): bool

$filename = $_FILES["upload"]["name"];
$filename_arr = pathinfo($_FILES["upload"]["name"]);
$suffix = $filename_arr["extension"];
$suffix = $filename_arr["extension"] ?? '';
$mimetype = $_FILES["upload"]["type"];
$size_bytes = $_FILES["upload"]["size"];
$temp_name = $_FILES["upload"]["tmp_name"];
Expand Down

0 comments on commit c5bc0d0

Please sign in to comment.