adm_program/modules/messages/messages_send.php
Avoid deeply nested control flow statements. Open
Open
if(!FileSystemUtils::allowedFileExtension($_FILES['userfile']['name'][$currentAttachmentNo])) {
throw new Exception('SYS_FILE_EXTENSION_INVALID');
}
Avoid deeply nested control flow statements. Open
Open
if ($attachmentSize > Email::getMaxAttachmentSize()) {
throw new Exception('SYS_ATTACHMENT_TO_LARGE');
}
Avoid deeply nested control flow statements. Open
Open
if (strlen($_FILES['userfile']['type'][$currentAttachmentNo]) <= 0) {
$_FILES['userfile']['type'][$currentAttachmentNo] = 'application/octet-stream';
}