diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-07-08 13:18:58 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-07-08 13:18:58 +0200 |
commit | 35fba1ef9f562a10a6b796e47024305218043bfc (patch) | |
tree | f0d51b91e99bba02bb2b183242ebe3b73e1655d2 /lib/private/files | |
parent | 2fd84607eed7281ab4d507bc4fffb4fd7c9233e0 (diff) | |
download | nextcloud-server-35fba1ef9f562a10a6b796e47024305218043bfc.tar.gz nextcloud-server-35fba1ef9f562a10a6b796e47024305218043bfc.zip |
Move mimetypes.list.php to config/mimetypemapping.json
This allows users to add new mimetypemappings (extention -> mimetype)
themself. And not have to wait until a new release for updated
mimetypes.
Fixes: #15384
Diffstat (limited to 'lib/private/files')
-rw-r--r-- | lib/private/files/type/detection.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/type/detection.php b/lib/private/files/type/detection.php index 61ca32a5ed1..3287375bc79 100644 --- a/lib/private/files/type/detection.php +++ b/lib/private/files/type/detection.php @@ -66,7 +66,7 @@ class Detection { // Update the alternative mimetypes to avoid having to look them up each time. foreach ($this->mimetypes as $mimeType) { - $this->secureMimeTypes[$mimeType[0]] = $mimeType[1] ?: $mimeType[0]; + $this->secureMimeTypes[$mimeType[0]] = isset($mimeType[1]) ? $mimeType[1]: $mimeType[0]; } } |