Fix SQL injection risk in booking sync pickup_bool
This commit is contained in:
@@ -200,6 +200,7 @@ class bookings_o extends db
|
||||
$washCertificateStatus = $db->escape_string($washCertificateStatus);
|
||||
$washCertificateUrl = $db->escape_string($washCertificateUrl);
|
||||
$status = $db->escape_string($status);
|
||||
$pickup_bool = (int)$pickup_bool;
|
||||
// Check if the entry already exists
|
||||
$sql = "SELECT * FROM $this->table WHERE id = $id";
|
||||
$result = $db->query($sql);
|
||||
|
||||
Reference in New Issue
Block a user