Se adiciona validacion para download en FILESMANAGER
This commit is contained in:
@@ -421,8 +421,12 @@ class FilesManager
|
|||||||
$sDirectory = PATH_DATA_MAILTEMPLATES . $sProcessUID . PATH_SEP . $sfile;
|
$sDirectory = PATH_DATA_MAILTEMPLATES . $sProcessUID . PATH_SEP . $sfile;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$oProcessMap = new \processMap(new \DBConnection());
|
if (file_exists(PATH_SEP.$sDirectory)) {
|
||||||
$oProcessMap->downloadFile($sProcessUID,$sMainDirectory,$sSubDirectory,$sfile);
|
$oProcessMap = new \processMap(new \DBConnection());
|
||||||
|
$oProcessMap->downloadFile($sProcessUID,$sMainDirectory,$sSubDirectory,$sfile);
|
||||||
|
} else {
|
||||||
|
throw (new \Exception( 'invalid value specified for `path`.'));
|
||||||
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user