From c1f34a11fada0a5b4596ee3c7cbf0bae52fb592c Mon Sep 17 00:00:00 2001 From: bohwaz Date: Fri, 17 Dec 2021 14:58:11 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20faille=20de=20s=C3=A9cu=20potentielle=20?= =?UTF-8?q?=3D=20passer=20les=20arguments=20=C3=A0=20la=20requ=C3=AAte=20c?= =?UTF-8?q?orrectement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Facture.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Facture.php b/lib/Facture.php index b414394..017db78 100644 --- a/lib/Facture.php +++ b/lib/Facture.php @@ -403,7 +403,7 @@ class Facture throw new UserException("Woopsie, g pô encore implémenté l'usage des membres de l'asso comme clients"); } - return DB::getInstance()->test('plugin_facturation_factures', 'receveur_membre = '. $base .' AND receveur_id = '. $id); + return DB::getInstance()->test('plugin_facturation_factures', 'receveur_membre = ? AND receveur_id = ?', $base, $id); } // ** Pour type reçu **