mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fixes various js security issues
This commit is contained in:
parent
3177d57089
commit
63caabfd17
13 changed files with 33 additions and 41 deletions
|
|
@ -11,14 +11,11 @@ const DEFINED_EVENTS = {
|
|||
"db_analyze" : function (event, chartContext, config) {
|
||||
const { dataPointIndex } = config;
|
||||
const { filter } = config.w.config;
|
||||
let value, value_label, label;
|
||||
let value;
|
||||
|
||||
if(config.w.config.filtering_labels)
|
||||
value = config.w.config.filtering_labels[dataPointIndex];
|
||||
|
||||
if(config.w.config.labels)
|
||||
value_label = config.w.config.labels[dataPointIndex];
|
||||
|
||||
if(filter.length == 0 || value === undefined)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue