mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Fixes flow page not working with quotes
This commit is contained in:
parent
8a0ec81097
commit
a1c796d461
1 changed files with 8 additions and 2 deletions
|
|
@ -139,6 +139,12 @@ end
|
|||
|
||||
-- ###################################
|
||||
|
||||
local function sub_quotes_to_string(string_to_fix)
|
||||
return string_to_fix:gsub("%'", "‚")
|
||||
end
|
||||
|
||||
-- ###################################
|
||||
|
||||
function printHostPoolDropdown(base_url, page_params, host_pool_list)
|
||||
local host_pools = require "host_pools"
|
||||
|
||||
|
|
@ -187,8 +193,8 @@ function printHostPoolDropdown(base_url, page_params, host_pool_list)
|
|||
|
||||
host_pool_table["host_pool_id"] = key
|
||||
print(getPageUrl(base_url, host_pool_table))
|
||||
|
||||
print[[">]] print(host_pools_instance:get_pool_name(key)) print [[ (]] print(string.format("%d", value.count)) print [[)</a></li>]]
|
||||
|
||||
print[[">]] print(sub_quotes_to_string(host_pools_instance:get_pool_name(key))) print [[ (]] print(string.format("%d", value.count)) print [[)</a></li>]]
|
||||
end
|
||||
|
||||
print[[</ul>]]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue