This commit is contained in:
Laurent Destailleur 2020-06-26 20:38:41 +02:00
parent 6df049e05c
commit 3655f6f407

View File

@ -1144,7 +1144,7 @@ class DolGraph
foreach ($legends as $val) // Loop on each serie
{
if ($i > 0) $this->stringtoshow .= ', ';
$this->stringtoshow .= "'".dol_trunc($val,32)."'";
$this->stringtoshow .= "'".dol_escape_js(dol_trunc($val,32))."'";
$i++;
}
@ -1207,7 +1207,7 @@ class DolGraph
foreach ($legends as $val) // Loop on each serie
{
if ($i > 0) $this->stringtoshow .= ', ';
$this->stringtoshow .= "'".$val."'";
$this->stringtoshow .= "'".dol_escape_js(dol_trunc($val,32))."'";
$i++;
}