Merged in bugfix/HOR-3284 (pull request #5706)
HOR-3284 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
35c43c9731
@@ -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