* fix a bug.

This commit is contained in:
wyd621
2014-03-28 11:43:24 +00:00
parent 97ecae2e4f
commit 98efc661af
+1 -1
View File
@@ -150,7 +150,7 @@ class fileModel extends model
*/
public function getExtension($filename)
{
$extension = pathinfo($filename, PATHINFO_EXTENSION);
$extension = strtolower(pathinfo($filename, PATHINFO_EXTENSION));
if(strpos($this->config->file->dangers, $extension) !== false) return 'txt';
return $extension;
}