FIX_SQL_INJECT2
This commit is contained in:
parent
cea1e0f42d
commit
fa69f2780c
@ -36,6 +36,12 @@ class Acl
|
||||
'teams' => []
|
||||
],
|
||||
|
||||
// ===================== VIEW INCEPTION PAGE =====================
|
||||
'#^/hrFileList#' => [
|
||||
'roles' => [ ADMIN_ROLE_ID,HEAD_ROLE_ID, MANAGER_ROLE_ID, STAFF_ROLE_ID, ACCOUNT_MANAGER_ROLE_ID],
|
||||
'teams' => []
|
||||
],
|
||||
|
||||
// ===================== USER MANAGEMENT =====================
|
||||
'#^/user#' => [
|
||||
'roles' => [ HEAD_ROLE_ID,ADMIN_ROLE_ID],
|
||||
|
||||
@ -1905,7 +1905,7 @@ class EmployeeController extends AdminController
|
||||
$query = "
|
||||
UPDATE employee_polices
|
||||
SET employee_polices.status = 'truncated', employee_polices.is_active = 0
|
||||
WHERE employee_polices.file_id == :file_id:
|
||||
WHERE employee_polices.file_id = :file_id:
|
||||
";
|
||||
|
||||
$binds = ["file_id" => $file_id];
|
||||
|
||||
@ -836,9 +836,9 @@ class VidalApiController extends BaseController
|
||||
// log_message('error', "✅ Match found: emp_code={$row['empNo']} policy={$row['policyNumber']}");
|
||||
|
||||
$sql = "UPDATE employee_polices
|
||||
SET tpa_id = ?
|
||||
WHERE id = ?";
|
||||
$this->db->query($sql, [$row['enrollmentId'], $policy_data['emp_policy_id']]);
|
||||
SET tpa_id = :tpa_id:,
|
||||
WHERE id = :emp_policy_id:";
|
||||
$this->db->query($sql, ["tpa_id"=>$row['enrollmentId'], "emp_policy_id"=>$policy_data['emp_policy_id']]);
|
||||
|
||||
// for e-card send
|
||||
if(strtolower(trim($policy_data['relationship'])) == 'self'){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user