From fc92a2013f25aab563ac237b38904c3b1d76a7de Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 25 May 2011 10:10:18 +0000 Subject: [PATCH] Fix: Notes must use dol_htmlentitiesbr to be shown. --- htdocs/user/group/fiche.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/user/group/fiche.php b/htdocs/user/group/fiche.php index 4ea15fba781..30412abdb0c 100644 --- a/htdocs/user/group/fiche.php +++ b/htdocs/user/group/fiche.php @@ -98,11 +98,13 @@ if ($_POST["action"] == 'add') $db->commit(); Header("Location: fiche.php?id=".$editgroup->id); + exit; } else { - $langs->load("errors"); $db->rollback(); + + $langs->load("errors"); $message='
'.$langs->trans("ErrorGroupAlreadyExists",$editgroup->nom).'
'; $action="create"; // Go back to create page } @@ -311,7 +313,7 @@ else // Note print ''.$langs->trans("Note").''; - print ''.nl2br($group->note).' '; + print ''.dol_htmlentitiesbr($group->note).' '; print "\n"; print "\n";