HOR-3284
This commit is contained in:
@@ -152,7 +152,7 @@ class FilesManager
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$aData['prf_path'] = rtrim($aData['prf_path'], '/') . '/';
|
$aData['prf_path'] = rtrim($aData['prf_path'], '/') . '/';
|
||||||
if (!$aData['prf_filename']) {
|
if (!$aData['prf_filename'] || strpbrk($aData['prf_filename'], "\\/?%*:|\"<>") !== false) {
|
||||||
throw new \Exception(\G::LoadTranslation("ID_INVALID_VALUE_FOR", array('prf_filename')));
|
throw new \Exception(\G::LoadTranslation("ID_INVALID_VALUE_FOR", array('prf_filename')));
|
||||||
}
|
}
|
||||||
$extention = strstr($aData['prf_filename'], '.');
|
$extention = strstr($aData['prf_filename'], '.');
|
||||||
|
|||||||
Reference in New Issue
Block a user