Fixes last security issues

This commit is contained in:
Matteo Biscosi 2023-04-06 12:03:50 +00:00
parent 05bd1b7a02
commit 6db98842d8
7 changed files with 5 additions and 17 deletions

View file

@ -15195,13 +15195,6 @@ nv.models.pie = function() {
}
// Computes the angle of an arc, converting from radians to degrees.
function angle(d) {
var a = (d.startAngle + d.endAngle) * 90 / Math.PI - 90;
return a > 90 ? a - 180 : a;
}
function arcTween(a, idx) {
a.endAngle = isNaN(a.endAngle) ? 0 : a.endAngle;
a.startAngle = isNaN(a.startAngle) ? 0 : a.startAngle;
@ -15358,7 +15351,6 @@ nv.models.pieChart = function() {
var container = d3.select(this);
nv.utils.initSVG(container);
var that = this;
var availableWidth = nv.utils.availableWidth(width, container, margin),
availableHeight = nv.utils.availableHeight(height, container, margin);

View file

@ -1,6 +1,6 @@
import { DataTableUtils } from "../utilities/datatable/sprymedia-datatable-utils";
import formatterUtils from "../utilities/formatter-utils.js";
import { ntopng_utility, ntopng_url_manager } from "../services/context/ntopng_globals_services.js";
import { ntopng_url_manager } from "../services/context/ntopng_globals_services.js";
import NtopUtils from "../utilities/ntop-utils";
const bytesToSizeFormatter = formatterUtils.getFormatter(formatterUtils.types.bytes.id);

File diff suppressed because one or more lines are too long

View file

@ -73,10 +73,6 @@ function getSerieName(name, id, tsGroup, extendSeriesName) {
return `${prefix} ${name_more_space}(${yaxisName})`;
}
function getAddSeriesNameSource(tsGrpupsArray) {
return tsGrpupsArray[0]?.source?.name != null;
}
function getYaxisId(metric) {
return `${metric.measure_unit}_${metric.scale}`;
}

View file

@ -231,7 +231,7 @@ function get_table_columns_config() {
columns.push({columnName: i18n("clients"), targets: 0, name: 'num_clients', data: 'num_clients', className: 'text-nowrap text-center', responsivePriority: 1});
if(selected_criteria.value.value != 3 && selected_criteria.value.value != 4)
columns.push({columnName: i18n("servers"), targets: 0, name: 'num_servers', data: 'num_servers', className: 'text-nowrap text-center', responsivePriority: 1})
columns.push({columnName: i18n("servers"), targets: 0, name: 'num_servers', data: 'num_servers', className: 'text-nowrap text-center', responsivePriority: 1});
columns.push({
columnName: i18n("breakdown"), targets: 0, sorting: false, name: 'breakdown', data: 'breakdown', className: 'text-nowrap text-center', responsivePriority: 1, render: (data) => {

@ -1 +1 @@
Subproject commit b4a02bfdeca6ecee60dbbde36125659e09d17cae
Subproject commit 1de8b7dd6f1d2f33027ecbce51ba07e4eb195a70

View file

@ -55,7 +55,7 @@ class LocalizationFile(object):
else:
self.next_skip = line.endswith("..")
def close(self)
def close(self):
self.f.close()
# Wrapper to provide len and indexing on the LocalizationFile