From 11e553a98daf8563bc0ebf97943eb55b9623f3ba Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 8 Oct 2005 18:09:53 +0000 Subject: [PATCH] Fix: Pas de nl2br pas dans un textarea --- htdocs/comm/action/fiche.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index a08dd71f377..88477e2293d 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -161,9 +161,9 @@ if ($_POST["action"] == 'update') { $action = new Actioncomm($db); $action->fetch($_POST["id"]); - $action->percent = $_POST["percent"]; - $action->contact->id = $_POST["contactid"]; - $action->note = $_POST["note"]; + $action->percent = stripslashes($_POST["percent"]); + $action->contact->id = stripslashes($_POST["contactid"]); + $action->note = stripslashes($_POST["note"]); $action->update(); } @@ -462,7 +462,7 @@ if ($_GET["id"]) // Note print ''.$langs->trans("Note").''; - print ''; + print ''; print ''; print '     ';