Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Dev: Throw error about MimeType only without FileInfo
Dev: related issue #15237
  • Loading branch information
Shnoulle committed Sep 6, 2019
1 parent e749edd commit ab4bd51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/UploaderController.php
Expand Up @@ -182,7 +182,7 @@ public function run($actionID)
if(is_null($extByMimeType)) {
/* Lack of finfo_open or mime_content_type ? But can be a not found extension too.*/
/* Check if can find mime type of favicon.ico , without extension */
if(CFileHelper::getMimeType(APPPATH."favicon.ico", null, false) != 'ico') { // hope we have favicon.ico for a long time
if(CFileHelper::getExtensionByMimeType(APPPATH."favicon.ico", null, false) != 'ico') { // hope we have favicon.ico for a long time
$disableCheck = true;
Yii::log("Unable to check mime type of files, check for finfo_open or mime_content_type function.",\CLogger::LEVEL_ERROR,'application.controller.uploader.upload');
if( YII_DEBUG || Permission::isForcedSuperAdmin(Permission::getUserId()) ) {
Expand Down

0 comments on commit ab4bd51

Please sign in to comment.