summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-11-18 12:40:10 +0100
committerFlorian Pritz <bluewind@xinu.at>2011-11-18 12:40:10 +0100
commitb02ffd6c11ee212ccdd5f2e17a5f69a620f2a5af (patch)
treed1ad3e8e27caa1b1285f3841994fcfabb1a6f194 /application
parent549d7b328eeba40fd85577ef76cf8567de374d6c (diff)
use full path to perl executable when calling mimetype
Everywhere else we already do it like that. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application')
-rw-r--r--application/models/file_mod.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/models/file_mod.php b/application/models/file_mod.php
index 5f1d7975c..f6ad6d8f4 100644
--- a/application/models/file_mod.php
+++ b/application/models/file_mod.php
@@ -96,7 +96,7 @@ class File_mod extends CI_Model {
// TODO: Should only update not insert; see new_id()
function add_file($hash, $id, $filename)
{
- $mimetype = exec(FCPATH.'scripts/mimetype '.escapeshellarg($filename).' '.escapeshellarg($this->file($hash)));
+ $mimetype = exec("/usr/bin/perl ".FCPATH.'scripts/mimetype '.escapeshellarg($filename).' '.escapeshellarg($this->file($hash)));
$query = $this->db->query('
INSERT INTO `files` (`hash`, `id`, `filename`, `password`, `date`, `mimetype`)
VALUES (?, ?, ?, ?, ?, ?)',