summaryrefslogtreecommitdiff
path: root/lib/mediafile.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2010-03-01 19:56:16 -0500
committerCraig Andrews <candrews@integralblue.com>2010-03-01 21:44:41 -0500
commitf9dd83caa72a799916725888a631725d532d780e (patch)
tree35db5a90733b10437e42f07d2f9fff1210da68d0 /lib/mediafile.php
parent1b1dab206fa1ff99ae40867cda6fa48857f5c1c0 (diff)
Modify configuration to have an option to allow uploads regardless of mime type
Diffstat (limited to 'lib/mediafile.php')
-rw-r--r--lib/mediafile.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mediafile.php b/lib/mediafile.php
index e3d5b1dbc..10d90d008 100644
--- a/lib/mediafile.php
+++ b/lib/mediafile.php
@@ -262,7 +262,7 @@ class MediaFile
$filetype = MIME_Type::autoDetect($stream['uri']);
}
- if (in_array($filetype, common_config('attachments', 'supported'))) {
+ if (common_config('attachments', 'supported') === true || in_array($filetype, common_config('attachments', 'supported'))) {
return $filetype;
}
$media = MIME_Type::getMedia($filetype);