mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fixed shell endpoint bug and added notice when executing the script (#4748)
Co-authored-by: matteo <biscosi@ntop.org>
This commit is contained in:
parent
e6bacc5b83
commit
e543b207c9
6 changed files with 93 additions and 23 deletions
|
|
@ -17,7 +17,10 @@ local script = {}
|
|||
-- @params http_lint a reference to the scripts/lua/modules/http_lint.lua module
|
||||
-- @return a (possibly empty) table with parameter_name -> validator mappings
|
||||
function script.getAdditionalParameters(http_lint)
|
||||
return {}
|
||||
return {
|
||||
["shell_script"] = http_lint.validateEmptyOr(http_lint.validateSingleWord),
|
||||
["shell_options"] = http_lint.validateEmptyOr(http_lint.validateSingleWord),
|
||||
}
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue