Ticket #1485222 (closed Patches: fixed)

Opened 4 months ago

Last modified 4 months ago

use fallback if mime_content_type() returns false

Reported by: arekm Owned by:
Priority: 5 Milestone: 0.2-beta
Component: PHP backend Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

mime_content_type() can return false in some cases (like when mime database is empty).

Currently roundcube doesn't fallback to fileinfo and to default 'text/plain' which is very bad.

Correct that.

Attachments

fifno.patch (482 bytes) - added by arekm 4 months ago.
fallback to finfo and default mimetype

Change History

Changed 4 months ago by arekm

fallback to finfo and default mimetype

Changed 4 months ago by alec

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from later to 0.2-beta

Fixed in r1594.

Note: See TracTickets for help on using tickets.