Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #31084 [HttpFoundation] Make MimeTypeExtensionGuesser case insens…
…itive (vermeirentony) This PR was merged into the 3.4 branch. Discussion ---------- [HttpFoundation] Make MimeTypeExtensionGuesser case insensitive | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> Some mime types have a camelCase word in them. The Apache HTTPD project list items are all lower case. So I suggest making the $mimeType string lowercase while checking the array key. That way, we can keep the list in sync. Example: xlsm file mime type is `application/vnd.ms-excel.sheet.macroEnabled.12` The key that matches the xlsm extension in the `$defaultExtensions` array is `application/vnd.ms-excel.sheet.macroenabled.12` Example xlsm file: https://github.com/vermeirentony/xlsm-example Commits ------- e294ee6b9a Make MimeTypeExtensionGuesser case insensitive
- Loading branch information