mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Temporarily validate AM type as single word
This commit is contained in:
parent
a9fa3ca02b
commit
c55e38235e
1 changed files with 15 additions and 15 deletions
|
|
@ -105,21 +105,6 @@ local function validateEmptyOr(other_validation)
|
|||
end
|
||||
http_lint.validateEmptyOr = validateEmptyOr
|
||||
|
||||
local function validateMeasurement(p)
|
||||
--[[ FIXX include loop check (pragma_once_checks)
|
||||
local am_utils = require "am_utils"
|
||||
|
||||
if am_utils then
|
||||
local available_measurements = am_utils.getMeasurementsInfo()
|
||||
|
||||
return(available_measurements[p] ~= nil)
|
||||
end
|
||||
|
||||
return(false)
|
||||
--]]
|
||||
return true
|
||||
end
|
||||
|
||||
-- #################################################################
|
||||
|
||||
-- FRONT-END VALIDATORS
|
||||
|
|
@ -324,6 +309,21 @@ local function validateJSON(j)
|
|||
return (json.decode(j) ~= nil)
|
||||
end
|
||||
|
||||
local function validateMeasurement(p)
|
||||
--[[ FIXX include loop check (pragma_once_checks)
|
||||
local am_utils = require "am_utils"
|
||||
|
||||
if am_utils then
|
||||
local available_measurements = am_utils.getMeasurementsInfo()
|
||||
|
||||
return(available_measurements[p] ~= nil)
|
||||
end
|
||||
|
||||
return(false)
|
||||
--]]
|
||||
return validateSingleWord(p)
|
||||
end
|
||||
|
||||
-- #################################################################
|
||||
|
||||
local function validateOnOff(mode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue