Skip to content

Commit 50ac67f

Browse files
authored
fix upper cases
1 parent 381da0f commit 50ac67f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Dflydev/ApacheMimeTypes/PhpRepository.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1791,6 +1791,7 @@ public function dumpTypeToExtensions()
17911791
*/
17921792
public function findExtensions($type)
17931793
{
1794+
$type = strtolower($type);
17941795
if (isset($this->typeToExtensions[$type])) {
17951796
return $this->typeToExtensions[$type];
17961797
}
@@ -1803,6 +1804,7 @@ public function findExtensions($type)
18031804
*/
18041805
public function findType($extension)
18051806
{
1807+
$extension = strtolower($extension);
18061808
if (isset($this->extensionToType[$extension])) {
18071809
return $this->extensionToType[$extension];
18081810
}

0 commit comments

Comments
 (0)