mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fixes Grafana module - no data accessible (Internal Server Error)
Fixes #1945
This commit is contained in:
parent
2e8e39851a
commit
57df231b3a
1 changed files with 7 additions and 2 deletions
|
|
@ -162,6 +162,11 @@ local function passwordCleanup(p)
|
|||
return p -- don't touch passwords (checks against valid fs paths already performed)
|
||||
end
|
||||
|
||||
local function jsonCleanup(json_payload)
|
||||
-- can't touch the json payload or it could be broken
|
||||
return json_payload
|
||||
end
|
||||
|
||||
local function whereCleanup(p)
|
||||
-- SQL where
|
||||
-- A-Za-z0-9!=<>()
|
||||
|
|
@ -1273,8 +1278,8 @@ local known_parameters = {
|
|||
["initial_point"] = validateBool,
|
||||
|
||||
-- json POST DATA
|
||||
["payload"] = validateJSON,
|
||||
["JSON"] = validateJSON
|
||||
["payload"] = { jsonCleanup, validateJSON },
|
||||
["JSON"] = { jsonCleanup, validateJSON },
|
||||
}
|
||||
|
||||
-- A special parameter is formed by a prefix, followed by a variable suffix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue