Se adiciona validacion en Files manager
This commit is contained in:
@@ -268,7 +268,7 @@ class FilesManager
|
||||
$extention = '.html';
|
||||
$_FILES['prf_file']['name'] = $_FILES['prf_file']['name'].$extention;
|
||||
}
|
||||
if ($extention != 'html' || $extention != 'txt') {
|
||||
if ($extention == 'exe') {
|
||||
throw new \Exception(\G::LoadTranslation('ID_FILE_UPLOAD_INCORRECT_EXTENSION'));
|
||||
}
|
||||
$file = end(explode("/",$path));
|
||||
|
||||
Reference in New Issue
Block a user