Fixed shell endpoint bug and added notice when executing the script (#4748)

Co-authored-by: matteo <biscosi@ntop.org>
This commit is contained in:
Matteo Biscosi 2020-11-18 17:06:06 +01:00 committed by GitHub
parent e6bacc5b83
commit e543b207c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 93 additions and 23 deletions

View file

@ -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
-- ##############################################