remove invalid characters from family and units too
Costa Tsaousis (ktsaou) committed
Sep 15, 2017 at 12:22 UTC
513aeb9fc1c2ba33e30567840d65dbf715cdecc4
1 file changed
+4
src/rrdset.c
+4
@@ -582,8 +582,12 @@ RRDSET *rrdset_create_custom(
582
583
st->chart_type = rrdset_type_id(config_get(st->config_section, "chart type", rrdset_type_name(chart_type)));
584
st->type = config_get(st->config_section, "type", type);
585
+
586
st->family = config_get(st->config_section, "family", family?family:st->type);
587
+ json_fix_string(st->family);
588
+
589
st->units = config_get(st->config_section, "units", units?units:"");
590
+ json_fix_string(st->units);
591
592
st->context = config_get(st->config_section, "context", context?context:st->id);
593
json_fix_string(st->context);