diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-23 05:35:20 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-23 05:35:20 -0700 |
commit | 7bcaa858af31c5c496bc5adc0c73ec333d4c1e63 (patch) | |
tree | 984d51f5d3cb7400bc14a30df16a23e066d82200 /actions | |
parent | ccd9cdd6183ac479ef8e88e61814c3209b428eb3 (diff) |
make file command configurable
Diffstat (limited to 'actions')
-rw-r--r-- | actions/newnotice.php | 3 |
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; |