From 7b011334937ec33119e411f956d14aa16216efca Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 22 Mar 2021 13:41:43 +0100 Subject: [PATCH] Fix escape --- htdocs/societe/class/api_thirdparties.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/societe/class/api_thirdparties.class.php b/htdocs/societe/class/api_thirdparties.class.php index f0cf3fa595a..ddc9fa41fdb 100644 --- a/htdocs/societe/class/api_thirdparties.class.php +++ b/htdocs/societe/class/api_thirdparties.class.php @@ -1435,7 +1435,7 @@ class Thirdparties extends DolibarrApi $sql = "SELECT rowid, fk_soc, key_account, site, date_creation, tms FROM ".MAIN_DB_PREFIX."societe_account"; $sql .= " WHERE fk_soc = ".((int) $id); if ($site) { - $sql .= " AND site ='".$this->db-escape($site)."'"; + $sql .= " AND site ='".$this->db->escape($site)."'"; } $result = $this->db->query($sql);