summaryrefslogtreecommitdiff
path: root/actions/newnotice.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-06-23 05:35:20 -0700
committerEvan Prodromou <evan@controlyourself.ca>2009-06-23 05:35:20 -0700
commit7bcaa858af31c5c496bc5adc0c73ec333d4c1e63 (patch)
tree984d51f5d3cb7400bc14a30df16a23e066d82200 /actions/newnotice.php
parentccd9cdd6183ac479ef8e88e61814c3209b428eb3 (diff)
make file command configurable
Diffstat (limited to 'actions/newnotice.php')
-rw-r--r--actions/newnotice.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/actions/newnotice.php b/actions/newnotice.php
index 09652d2b3..b7d9ec1dd 100644
--- a/actions/newnotice.php
+++ b/actions/newnotice.php
@@ -116,6 +116,9 @@ class NewnoticeAction extends Action
function getUploadedFileType() {
require_once 'MIME/Type.php';
+ $cmd = &PEAR::getStaticProperty('MIME_Type', 'fileCmd');
+ $cmd = common_config('attachments', 'filecommand');
+
$filetype = MIME_Type::autoDetect($_FILES['attach']['tmp_name']);
if (in_array($filetype, common_config('attachments', 'supported'))) {
return $filetype;