[BUGFIX] Support SVG without XML prologue 27/38727/11
authorFrank Nägler <typo3@naegler.net>
Thu, 16 Apr 2015 07:50:21 +0000 (09:50 +0200)
committerFrans Saris <franssaris@gmail.com>
Mon, 20 Apr 2015 17:09:19 +0000 (19:09 +0200)
commit1c0420df596c9874acedbc4c0930f5c46182fde2
tree00028414f39262cbb4838dc68054de2ab4140d91
parent9c9d0bac2a0c7bd9e97de958575971d896e2b6e8
[BUGFIX] Support SVG without XML prologue

If a SVG does not contains a XML prologue, TYPO3 indexes this file with
mimetype text/plain, which results in missing width and height in the
database. This patch adds a mapping for known filetypes to support
also files which mimetype can not detected automatically.

Resolves: #66445
Releases: master
Change-Id: I908e2f1bb95f9e59ebf23f79f09645afd6696ecd
Reviewed-on: http://review.typo3.org/38727
Reviewed-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Tested-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
typo3/sysext/core/Classes/Type/File/FileInfo.php
typo3/sysext/core/Configuration/DefaultConfiguration.php
typo3/sysext/core/Documentation/Changelog/master/Feature-66445-AddFileExtensionToMimeTypeMapping.rst [new file with mode: 0644]