From ea8f3f8be6bd7e816f0fff6acd005e8dca6f06f2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 8 May 2024 01:58:21 +0200 Subject: [PATCH] Debug v20 --- htdocs/core/lib/functions.lib.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index ea63fa2fcb3..96b05a9e283 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -6113,7 +6113,7 @@ function print_fiche_titre($title, $mesg = '', $picto = 'generic', $pictoisfullp /** * Load a title with picto * - * @param string $title Title to show + * @param string $title Title to show (HTML sanitized content) * @param string $morehtmlright Added message to show on right * @param string $picto Icon to use before title (should be a 32x32 transparent png file) * @param int $pictoisfullpath 1=Icon name is a full absolute url of image @@ -6138,7 +6138,9 @@ function load_fiche_titre($title, $morehtmlright = '', $picto = 'generic', $pict $return .= ''.img_picto('', $picto, 'class="valignmiddle widthpictotitle pictotitle"', $pictoisfullpath).''; } $return .= ''; - $return .= '
'.dol_escape_htmltag($title).'
'; + $return .= '
'; + $return .= $title; // $title is already HTML sanitized content + $return .= '
'; $return .= ''; if (dol_strlen($morehtmlcenter)) { $return .= ''.$morehtmlcenter.'';