Improve influxdb database name validation

This commit is contained in:
emanuele-f 2019-05-14 09:41:59 +02:00
parent e3ee0d5a1b
commit 15cb890b19

View file

@ -1385,7 +1385,7 @@ function printStatsTimeseries()
ntop.delCache("ntopng.prefs.influx_dbname")
end
prefsInputFieldPrefs(subpage_active.entries["influxdb_dbname"].title, subpage_active.entries["influxdb_dbname"].description,
"ntopng.prefs.", "influx_dbname", product:gsub(' ' , '_'), nil, influx_active, nil, nil, {pattern="[^\\s]+"})
"ntopng.prefs.", "influx_dbname", product:gsub(' ' , '_'), nil, influx_active, nil, nil, {pattern="[A-z,0-9,_]+"})
prefsToggleButton(subpage_active, {
field = "toggle_influx_auth",