Changeset 403e3f4 in github


Ignore:
Timestamp:
Jul 18, 2008 7:38:56 AM (5 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
bc0fe54
Parents:
b82a626
Message:
  • use fallback if mime_content_type() returns false (#1485222)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_shared.inc

    rb541216 r403e3f4  
    562562 
    563563    if (function_exists('mime_content_type')) { 
    564         return mime_content_type($path); 
    565     } 
     564        $finfo = mime_content_type($path);  
     565        if ($finfo) 
     566            return $finfo; 
     567    } 
     568     
    566569    if (!extension_loaded('fileinfo')) {  
    567570        if (!dl('fileinfo.' . PHP_SHLIB_SUFFIX)) { 
     
    569572        } 
    570573    } 
     574     
    571575    $finfo = finfo_open(FILEINFO_MIME, $mime_magic); 
    572576    if (!$finfo) { 
Note: See TracChangeset for help on using the changeset viewer.