Added enconding to POST variables

This commit is contained in:
Luis Calvo 2020-01-21 11:05:49 +01:00
parent 2a17065065
commit 3d0b71d953
1 changed files with 2 additions and 2 deletions

View File

@ -109,6 +109,6 @@ if (empty($data)) {
}
echo '{
"label": "'.$graph_title.'",
"data": [["'.time().'", '.$data.']]
"label": "'.htmlspecialchars($graph_title, ENT_QUOTES).'",
"data": [["'.time().'", '.htmlspecialchars($data, ENT_QUOTES).']]
}';