mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
Added invalid interface check (#6241)
This commit is contained in:
parent
5c3a838086
commit
8a2b06ed6e
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ local what = _GET["status"] -- historical, historical-flows
|
|||
local epoch_begin = _GET["epoch_begin"]
|
||||
local epoch_end = _GET["epoch_end"]
|
||||
|
||||
if isEmptyString(ifid) then
|
||||
if isEmptyString(ifid) or not interface.isValidIfId(ifid) then
|
||||
print(rest_utils.rc(rest_utils.consts.err.invalid_interface))
|
||||
return
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue