Skip to content

Commit 2d50f2b

Browse files
author
HorstOeko
committed
Extension-Search in LowerCase
1 parent 5242e42 commit 2d50f2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MimeDb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function findAllMimeTypesByExtension(string $lookupFileExtension): ?array
120120
$foundDbEntries = array_filter(
121121
$this->mimeDatabase,
122122
function ($mimetypeDefinition) use ($lookupFileExtension) {
123-
return in_array(ltrim($lookupFileExtension, "."), $mimetypeDefinition['extensions']);
123+
return in_array(strtolower(ltrim($lookupFileExtension, ".")), $mimetypeDefinition['extensions']);
124124
}
125125
);
126126

0 commit comments

Comments
 (0)