Some mimetype madness!

This commit is contained in:
Mikael Nordfeldth
2016-07-06 08:59:16 +02:00
parent 3987cad9b7
commit b4a0bff740
4 changed files with 39 additions and 7 deletions

View File

@@ -2016,7 +2016,7 @@ function common_supported_mime_to_ext($mimetype)
{
$supported = common_config('attachments', 'supported');
if ($supported === true) {
throw new ServerException('Supported mimetype but unknown extension relation.');
throw new UnknownMimeExtensionException();
}
foreach($supported as $type => $ext) {
if ($mimetype === $type) {