Skip to content
Snippets Groups Projects
Commit fc92a201 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Notes must use dol_htmlentitiesbr to be shown.

parent e6cb0acc
No related branches found
No related tags found
No related merge requests found
......@@ -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='<div class="error">'.$langs->trans("ErrorGroupAlreadyExists",$editgroup->nom).'</div>';
$action="create"; // Go back to create page
}
......@@ -311,7 +313,7 @@ else
// Note
print '<tr><td width="25%" valign="top">'.$langs->trans("Note").'</td>';
print '<td class="valeur">'.nl2br($group->note).'&nbsp;</td>';
print '<td class="valeur">'.dol_htmlentitiesbr($group->note).'&nbsp;</td>';
print "</tr>\n";
print "</table>\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment