mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
parent
f5afe9ecdd
commit
ea1c60c99c
12 changed files with 33 additions and 17 deletions
|
|
@ -13,7 +13,7 @@ local http_lint = require("http_lint")
|
|||
local action = _POST["action"]
|
||||
|
||||
local function reportError(msg)
|
||||
print(json.encode({ message = msg, success = false, csrf = ntop.getRandomCSRFValue() }))
|
||||
print(json.encode({ message = msg, success = false}))
|
||||
end
|
||||
|
||||
sendHTTPContentTypeHeader('application/json')
|
||||
|
|
@ -29,7 +29,6 @@ local data = json.decode(json_data)
|
|||
|
||||
|
||||
local response = {
|
||||
csrf = ntop.getRandomCSRFValue()
|
||||
}
|
||||
|
||||
if (action == "add") then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue