commit | 010f1f4b315c8f5aef2e0b4c6571e4c4752f56c6 | [log] [tgz] |
---|---|---|
author | tubalmartin <tubalmartin@gmail.com> | Sat Mar 03 22:24:31 2012 +0100 |
committer | tubalmartin <tubalmartin@gmail.com> | Sat Mar 03 22:24:31 2012 +0100 |
tree | d1ddd6f0327f8063dd2c825b285ae8004f6689e9 | |
parent | 1887c6d4847fd9d4251b58aba599cb8ee63d2e38 [diff] [blame] |
Fixed a bug - CI_Upload::_file_mime_type() could've failed if popen() is used for the detection.
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php index 91fbf66..b0490de 100644 --- a/system/libraries/Upload.php +++ b/system/libraries/Upload.php
@@ -1095,7 +1095,7 @@ $proc = @popen($cmd, 'r'); if (is_resource($proc)) { - $mime = @fread($test, 512); + $mime = @fread($proc, 512); @pclose($proc); if ($mime !== FALSE) {