* fix a bug.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user