Review TYPO3_6-0 Merged

18049[BUGFIX] Crash after file upload on Windows without finfo

Christian Kuhn CR +2 V +2 Easy +9 −4 updated 06/03/13, 20:49

Commit message

This patch checks if the finfo extension is available before using it
to determine the MIME type of a file.
If it is not available, the old function mime_content_type is used as
fallback.
When none of them are available, we give up.

This fixes a crash on Windows after uploading a file, since finfo
is by default not installed on PHP windows distributions.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Files 1