diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-09-15 22:45:44 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-09-15 22:52:33 +0200 |
commit | e8bc4a04cfe0333c4275f03073e7876190787304 (patch) | |
tree | 4a427f217876315214b2e2de23a3688a3a67c224 /application/models/file_mod.php | |
parent | 3755577853ef0a785aa6f718a2f3d824a9098556 (diff) |
remove unneeded call to filename2extension
mime2extension tells us if the file is text that can be highlit.
filename2extension leeds to unwanted behaviour if the filename is
for example "PKGBUILD", but the file is a binary.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models/file_mod.php')
-rw-r--r-- | application/models/file_mod.php | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/application/models/file_mod.php b/application/models/file_mod.php index c45dd85d5..fce84c090 100644 --- a/application/models/file_mod.php +++ b/application/models/file_mod.php @@ -117,7 +117,6 @@ class File_mod extends CI_Model { $file = $this->file($filedata['hash']); $type = $filedata['mimetype']; $mode = $this->mime2extension($type); - $mode = $this->filename2extension($filedata['filename']) ? $this->filename2extension($filedata['filename']) : $mode; // If we detected a highlightable file redirect, // otherwise show the URL because browsers would just show a DL dialog |