Skip to content

Commit

Permalink
Fix tainted vars in db results
Browse files Browse the repository at this point in the history
  • Loading branch information
tertek committed Jul 25, 2023
1 parent 3164d8a commit 8cbc73c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recordHomeDashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ public function getEventInfo() {
and a.arm_id = e.arm_id order by a.arm_num, e.day_offset, e.descrip";
$q = db_query($sql);
while ($row = db_fetch_assoc($q)){
$eventInfo[] = array( 'value' => $row['event_id'], 'text' => $row['descrip']);
$eventInfo[] = array( 'value' => (string)(int) $row['event_id'], 'text' => htmlspecialchars($row['descrip'], ENT_QUOTES));
}
db_free_result($q);
return $eventInfo;
Expand Down

0 comments on commit 8cbc73c

Please sign in to comment.