Se agrega validacion en files manager

This commit is contained in:
Freddy Daniel Rojas Valda
2014-06-03 09:56:11 -04:00
parent 3c264b320e
commit c09a240c83

View File

@@ -263,6 +263,11 @@ class FilesManager
if ($path == '') {
throw new \Exception(\G::LoadTranslation('ID_PMTABLE_UPLOADING_FILE_PROBLEM'));
}
$extention = strstr($_FILES['prf_file']['name'], '.');
if (!$extention) {
$extention = '.html';
$_FILES['prf_file']['name'] = $_FILES['prf_file']['name'].$extention;
}
$file = end(explode("/",$path));
$path = str_replace($file,'',$path);
if ($file == $_FILES['prf_file']['name']) {