From 237f4005bdfc5632884773516298ad0b9aa1ff46 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Wed, 17 Feb 2021 22:44:26 +0100 Subject: [PATCH] Apply htmlspecialchars to basic values. --- models/GenericTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/GenericTable.php b/models/GenericTable.php index b076df1..9356cce 100644 --- a/models/GenericTable.php +++ b/models/GenericTable.php @@ -208,7 +208,7 @@ class GenericTable { // Basic option: simply take a use a particular data property. case 'value': - $value = $rowData[$options['data']]; + $value = htmlspecialchars($rowData[$options['data']]); break; // Processing via a lambda function.