FIX_CLAIMS_SQL_INJECTION
This commit is contained in:
parent
4ff4b35912
commit
0e1648b628
@ -664,9 +664,13 @@ class TicketMasterModel extends Model
|
|||||||
|
|
||||||
// Execute the query
|
// Execute the query
|
||||||
$binds = ["start_date"=>$start_date,"end_date"=>$end_date];
|
$binds = ["start_date"=>$start_date,"end_date"=>$end_date];
|
||||||
|
// Merge policy_type binds if present
|
||||||
|
if (!empty($statusBinds)) {
|
||||||
|
$binds = array_merge($binds, $statusBinds);
|
||||||
|
}
|
||||||
$result = $this->db->query($sql, $binds)->getResultArray();
|
$result = $this->db->query($sql, $binds)->getResultArray();
|
||||||
|
// print_rr(count(($result)));
|
||||||
// print_rr($result);die();
|
// print_rr($this->db->lastQuery);die();
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -729,8 +733,13 @@ class TicketMasterModel extends Model
|
|||||||
";
|
";
|
||||||
|
|
||||||
$binds = ["start_date"=>$start_date,"end_date"=>$end_date];
|
$binds = ["start_date"=>$start_date,"end_date"=>$end_date];
|
||||||
|
// Merge policy_type binds if present
|
||||||
|
if (!empty($statusBinds)) {
|
||||||
|
$binds = array_merge($binds, $statusBinds);
|
||||||
|
}
|
||||||
$result = $this->db->query($sql,$binds)->getResultArray();
|
$result = $this->db->query($sql,$binds)->getResultArray();
|
||||||
|
// print_rr(count(($result)));
|
||||||
|
// print_rr($this->db->lastQuery);die();
|
||||||
return $result;
|
return $result;
|
||||||
} else {
|
} else {
|
||||||
$ticket_type_data_1 = "";
|
$ticket_type_data_1 = "";
|
||||||
@ -804,8 +813,13 @@ class TicketMasterModel extends Model
|
|||||||
|
|
||||||
$binds = ["start_date"=>$start_date,"end_date"=>$end_date];
|
$binds = ["start_date"=>$start_date,"end_date"=>$end_date];
|
||||||
// Execute the query
|
// Execute the query
|
||||||
$result = $this->db->query($sql,$binds)->getResultArray();
|
// Merge policy_type binds if present
|
||||||
|
if (!empty($statusBinds)) {
|
||||||
|
$binds = array_merge($binds, $statusBinds);
|
||||||
|
}
|
||||||
|
|
||||||
|
$result = $this->db->query($sql,$binds)->getResultArray();
|
||||||
|
// print_rr($this->db->lastQuery);die();
|
||||||
return $result;
|
return $result;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user