Skip to content

Commit

Permalink
Extension-Search in LowerCase
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Dec 3, 2024
1 parent 5242e42 commit 2d50f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MimeDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function findAllMimeTypesByExtension(string $lookupFileExtension): ?array
$foundDbEntries = array_filter(
$this->mimeDatabase,
function ($mimetypeDefinition) use ($lookupFileExtension) {
return in_array(ltrim($lookupFileExtension, "."), $mimetypeDefinition['extensions']);
return in_array(strtolower(ltrim($lookupFileExtension, ".")), $mimetypeDefinition['extensions']);
}
);

Expand Down

0 comments on commit 2d50f2b

Please sign in to comment.