Fixes concat bug

This commit is contained in:
MatteoBiscosi 2023-01-13 16:51:19 +01:00
parent 98cc2c32e0
commit bed94107d1
2 changed files with 4 additions and 1 deletions

View file

@ -1179,9 +1179,11 @@ function add_historical_flow_explorer_button_ref(extra_params)
local base_url = ntop.getHttpPrefix() .. "/lua/pro/db_search.lua?"
for k, v in pairs(extra_params) do
base_url = base_url .. k .. "=" .. v["value"] .. ";" .. v["operator"]
base_url = base_url .. k .. "=" .. v["value"] .. ";" .. v["operator"] .. "&"
end
base_url = base_url:sub(1, -2)
local button = '<a href="' .. base_url .. '" data-placement="bottom" class="btn btn-sm btn-primary" title="Historical Flow Explorer"><i class="fas fa-search-plus"></i></a>'
return button