From 454372bb4e8a712f4c6143e4837952b8acff3fca Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 4 Apr 2023 02:05:05 +0200 Subject: [PATCH] Fix show description of project --- htdocs/eventorganization/conferenceorbooth_list.php | 2 +- htdocs/projet/element.php | 2 +- htdocs/projet/tasks.php | 2 +- htdocs/projet/tasks/time.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/eventorganization/conferenceorbooth_list.php b/htdocs/eventorganization/conferenceorbooth_list.php index 1f31690052f..391f02d7c8c 100644 --- a/htdocs/eventorganization/conferenceorbooth_list.php +++ b/htdocs/eventorganization/conferenceorbooth_list.php @@ -403,7 +403,7 @@ if ($projectid > 0) { // Description print ''.$langs->trans("Description").''; - print nl2br($project->description); + print dol_htmlentitiesbr($project->description); print ''; // Categories diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php index 1bdefbcc1e6..1b002ba5688 100644 --- a/htdocs/projet/element.php +++ b/htdocs/projet/element.php @@ -340,7 +340,7 @@ print ''; // Description print ''; // Categories diff --git a/htdocs/projet/tasks.php b/htdocs/projet/tasks.php index 2ba3f329ac2..f15d5f019ba 100644 --- a/htdocs/projet/tasks.php +++ b/htdocs/projet/tasks.php @@ -648,7 +648,7 @@ if ($id > 0 || !empty($ref)) { // Description print ''; // Categories diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php index d97dee9a11b..b98e9298732 100644 --- a/htdocs/projet/tasks/time.php +++ b/htdocs/projet/tasks/time.php @@ -1038,7 +1038,7 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser // Description print ''; // Categories
'.$langs->trans("Description").''; -print nl2br($object->description); +print dol_htmlentitiesbr($object->description); print '
'.$langs->trans("Description").''; - print nl2br($object->description); + print dol_htmlentitiesbr($object->description); print '
'.$langs->trans("Description").''; - print nl2br($projectstatic->description); + print dol_htmlentitiesbr($projectstatic->description); print '