Merge branch 'develop' of bitbucket.org:colosa/processmaker into bugfix/HOR-2814-A
This commit is contained in:
@@ -152,7 +152,8 @@ class FilesManager
|
||||
{
|
||||
try {
|
||||
$aData['prf_path'] = rtrim($aData['prf_path'], '/') . '/';
|
||||
if (!$aData['prf_filename']) {
|
||||
$path = pathinfo($aData['prf_filename']);
|
||||
if (!$aData['prf_filename'] || $path['dirname'] != '.') {
|
||||
throw new \Exception(\G::LoadTranslation("ID_INVALID_VALUE_FOR", array('prf_filename')));
|
||||
}
|
||||
$extention = strstr($aData['prf_filename'], '.');
|
||||
|
||||
Reference in New Issue
Block a user