From b183dd10095dddea655cb8ae8e4636c7bc74e6c8 Mon Sep 17 00:00:00 2001 From: VESSILLER Date: Tue, 12 Sep 2023 17:27:23 +0200 Subject: [PATCH] Fix travis sql --- htdocs/webportal/public/class/html.formlistwebportal.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/webportal/public/class/html.formlistwebportal.class.php b/htdocs/webportal/public/class/html.formlistwebportal.class.php index a55405b6253..0dc4813d083 100644 --- a/htdocs/webportal/public/class/html.formlistwebportal.class.php +++ b/htdocs/webportal/public/class/html.formlistwebportal.class.php @@ -300,7 +300,7 @@ class FormListWebPortal $sql .= " WHERE 1 = 1"; } // filter on logged third-party - $sql .= " AND t.fk_soc = " . $context->logged_thirdparty->id; + $sql .= " AND t.fk_soc = " . $this->db->escape($context->logged_thirdparty->id); foreach ($search as $key => $val) { if (array_key_exists($key, $object->fields)) { if (($key == 'status' || $key == 'fk_statut') && $search[$key] == $emptyValueKey) {