diff --git a/report_budget.php b/report_budget.php index 0c35ea86..d29812da 100644 --- a/report_budget.php +++ b/report_budget.php @@ -65,7 +65,7 @@ $monthlyTotals = array_fill(1, 12, 0); // Initialize monthly totals for each mo if ($categories->num_rows > 0) { while($category = $categories->fetch_assoc()) { echo ""; - echo "" . $category['category_name'] . ""; + echo "" . nullable_htmlentities($category['category_name']) . ""; $categoryTotal = 0; for ($month = 1; $month <= 12; $month++) { // Fetch the monthly budget for this category for 2022