-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
Function testIsImage() uses PHP function finfo_file() to retrieve the mimeType, but on a shared server function finfo_file() may be disabled for security. Perhaps the code could be extended to first check if finfo_file() is enabled and if not then check the file extension as a fallback?
Refs:
https://expressionengine.com/forums/topic/247821/workaround-for-disabled-php-fileinfo-extension
https://stackoverflow.com/questions/134833/how-do-i-find-the-mime-type-of-a-file-with-php
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels