From c7b381c46acc6e7b76e4bdc8cf9c5084fbe4335c Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sat, 13 Sep 2003 13:49:07 +0000 Subject: [PATCH] Ajout addslashes --- htdocs/product/fiche.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 4a53766fa81..4d4fa4ac2ce 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -79,7 +79,11 @@ if ($action == 'addinfacture') $facture = New Facture($db); $facture->fetch($HTTP_POST_VARS["factureid"]); - $facture->addline($HTTP_POST_VARS["factureid"], $product->label, $product->price, $HTTP_POST_VARS["qty"], $product->tva_tx, $id); + $facture->addline($HTTP_POST_VARS["factureid"], + addslashes($product->label), + $product->price, + $HTTP_POST_VARS["qty"], + $product->tva_tx, $id); $action = ''; $mesg = 'Produit ajouté ŕ la facture ';