Skip to content
Snippets Groups Projects
Commit d8b0b08d authored by Uma's avatar Uma
Browse files

Merged with master branch

parent b953cc89
No related branches found
No related tags found
2 merge requests!35737789504 security issue,!11[WIP] Merge with repository
......@@ -139,7 +139,7 @@ class CRMEntity {
$save_file = 'true';
//only images are allowed for Image Attachmenttype
$mimeType = mime_content_type($file_details['tmp_name']);
$mimeType = vtlib_mime_content_type($file_details['tmp_name']);
$mimeTypeContents = explode('/', $mimeType);
// For contacts and products we are sending attachmentType as value
if ($attachmentType == 'Image' || ($file_details['size'] && $mimeTypeContents[0] == 'image')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment