From 9289d356d71e2a76ab8be7cba311f5e93ebee677 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 3 May 2024 03:30:57 +0200 Subject: [PATCH] Fix escaping --- htdocs/webportal/class/html.formlistwebportal.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/webportal/class/html.formlistwebportal.class.php b/htdocs/webportal/class/html.formlistwebportal.class.php index 50a087bad68..717998a29b3 100644 --- a/htdocs/webportal/class/html.formlistwebportal.class.php +++ b/htdocs/webportal/class/html.formlistwebportal.class.php @@ -312,7 +312,7 @@ class FormListWebPortal $sql .= " WHERE 1 = 1"; } // filter on logged third-party - $sql .= " AND t.fk_soc = " . $socid; + $sql .= " AND t.fk_soc = " . ((int) $socid); foreach ($search as $key => $val) { if (array_key_exists($key, $object->fields)) {