summaryrefslogtreecommitdiffstats
path: root/system/application
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-04-01 03:05:17 +0200
committerFlorian Pritz <bluewind@xssn.at>2010-04-01 03:05:17 +0200
commit33184d4a01f4b95fd7f319d11cd4b71a765885b9 (patch)
tree537a7519cc5d87a61c6ea8fab2ac6c67e55e4bd1 /system/application
parent8c514266239c745101a71cdf9a5f1982fc3812ce (diff)
mimetype: add --orig-name and use it
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'system/application')
-rw-r--r--system/application/models/file_mod.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/application/models/file_mod.php b/system/application/models/file_mod.php
index bc7168e27..41959a5d2 100644
--- a/system/application/models/file_mod.php
+++ b/system/application/models/file_mod.php
@@ -153,7 +153,7 @@ class File_mod extends Model {
}
// MODIFIED SINCE SUPPORT -- END
- $type = exec('/usr/bin/perlbin/vendor/mimetype -b '.escapeshellarg($file));
+ $type = exec(FCPATH.'scripts/mimetype -b --orig-name '.escapeshellarg($filedata['filename']).' '.escapeshellarg($file));
if (!$mode && substr_count(ltrim($this->uri->uri_string(), "/"), '/') >= 1) {
$mode = $this->mime2extension($type);