From 282955c2a9a7dc8f780620a9c721ad9d2c69b170 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 21 Dec 2005 17:36:51 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20probl=E8me=20avec=20les=20apostrophes=20?= =?UTF-8?q?dans=20les=20notes=20du=20client=20-=20merci=20Zimba?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/socnote.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/socnote.php b/htdocs/socnote.php index 500389726fc..543611671c5 100644 --- a/htdocs/socnote.php +++ b/htdocs/socnote.php @@ -33,7 +33,7 @@ $langs->load("companies"); if ($_POST["action"] == 'add') { - $sql = "UPDATE ".MAIN_DB_PREFIX."societe SET note='".$_POST["note"]."' WHERE idp=".$_POST["socid"]; + $sql = "UPDATE ".MAIN_DB_PREFIX."societe SET note='".addslashes($_POST["note"])."' WHERE idp=".$_POST["socid"]; $result = $db->query($sql); $_GET["socid"]=$_POST["socid"]; // Pour retour sur fiche