* adjust code for bug #806.
This commit is contained in:
@@ -163,7 +163,7 @@ class fileModel extends model
|
||||
public function getExtension($filename)
|
||||
{
|
||||
$extension = trim(strtolower(pathinfo($filename, PATHINFO_EXTENSION)));
|
||||
if(empty($extension) or strpos($this->config->file->dangers, $extension) !== false) return 'txt';
|
||||
if(empty($extension) or strpos(",{$this->config->file->dangers},", ",{$extension},") !== false) return 'txt';
|
||||
if($extension == 'php') return 'txt';
|
||||
return $extension;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user