mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Added check for avoid searching empty strings
This commit is contained in:
parent
a78d3be40b
commit
2d969c1398
1 changed files with 13 additions and 0 deletions
|
|
@ -61,6 +61,19 @@ else
|
|||
|
||||
end
|
||||
|
||||
-- Empty query
|
||||
if(isEmptyString(query)) then
|
||||
local data = {
|
||||
interface = ifname,
|
||||
results = {},
|
||||
}
|
||||
|
||||
-- tprint(results)
|
||||
|
||||
rest_utils.answer(rc, data)
|
||||
return
|
||||
end
|
||||
|
||||
local ifid = interface.getId()
|
||||
|
||||
--- Links
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue