From 136f7a54e04f995912a4608a82aac1b4dcfb0427 Mon Sep 17 00:00:00 2001
From: appu <apparao@vtiger.com>
Date: Fri, 27 Oct 2023 13:49:09 +0530
Subject: [PATCH] #1790:Fixed - Security Issue:RCE in company logo with
 webservice api

---
 data/CRMEntity.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/data/CRMEntity.php b/data/CRMEntity.php
index 3a096d823..8c99babfc 100644
--- a/data/CRMEntity.php
+++ b/data/CRMEntity.php
@@ -186,7 +186,7 @@ class CRMEntity {
 			$save_file = validateImageFile($file_details);
 		}
                 $log->debug("File Validation status in Check1 save_file => $save_file");
-		if ($save_file == 'false') {
+		if (!$save_file) {
 			return false;
 		}
 
-- 
GitLab