Merge branch 'ent-5325-CSRF-XSS-realtime-graphs' into 'develop'

Added enconding to POST variables realtime graphs

See merge request artica/pandorafms!3019
This commit is contained in:
Daniel Rodriguez 2020-01-22 12:04:14 +01:00
commit f6cb7eb3d7
1 changed files with 2 additions and 2 deletions

View File

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