mirror of
https://github.com/itflow-org/itflow
synced 2026-03-03 04:14:54 +00:00
Escape potential HTML characters in client name
This commit is contained in:
@@ -65,7 +65,7 @@ $key = bin2hex(random_bytes(78));
|
|||||||
$sql = mysqli_query($mysqli,"SELECT * FROM clients WHERE company_id = $session_company_id ORDER BY client_name ASC");
|
$sql = mysqli_query($mysqli,"SELECT * FROM clients WHERE company_id = $session_company_id ORDER BY client_name ASC");
|
||||||
while($row = mysqli_fetch_array($sql)){
|
while($row = mysqli_fetch_array($sql)){
|
||||||
$client_id = $row['client_id'];
|
$client_id = $row['client_id'];
|
||||||
$client_name = $row['client_name'];
|
$client_name = htmlentities($row['client_name']);
|
||||||
?>
|
?>
|
||||||
<option value="<?php echo $client_id; ?>"><?php echo "$client_name (Client ID: $client_id)"; ?></option>
|
<option value="<?php echo $client_id; ?>"><?php echo "$client_name (Client ID: $client_id)"; ?></option>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user