mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Added teamviewer desktop sharing
This commit is contained in:
parent
b5717ea209
commit
72dafe678a
4 changed files with 22 additions and 11 deletions
|
|
@ -88,18 +88,21 @@ for key, value in ipairs(flows_stats) do
|
|||
info = getRTPInfo(flows_stats[key])
|
||||
end
|
||||
|
||||
-- safety checks against injections
|
||||
info = noHtml(info)
|
||||
info = info:gsub('"', '')
|
||||
local alt_info = info
|
||||
|
||||
if italic then
|
||||
info = string.format("<i>%s</i>", info)
|
||||
if(starts(info, "<i class")) then
|
||||
flows_stats[key]["info"] = info
|
||||
else
|
||||
-- safety checks against injections
|
||||
info = noHtml(info)
|
||||
info = info:gsub('"', '')
|
||||
local alt_info = info
|
||||
|
||||
if italic then
|
||||
info = string.format("<i>%s</i>", info)
|
||||
end
|
||||
info = shortenString(info)
|
||||
flows_stats[key]["info"] = "<span data-toggle='tooltip' title='"..alt_info.."'>"..info.."</span>"
|
||||
end
|
||||
|
||||
info = shortenString(info)
|
||||
|
||||
flows_stats[key]["info"] = "<span data-toggle='tooltip' title='"..alt_info.."'>"..info.."</span>"
|
||||
|
||||
|
||||
if(flows_stats[key]["profile"] ~= nil) then
|
||||
flows_stats[key]["info"] = formatTrafficProfile(flows_stats[key]["profile"])..flows_stats[key]["info"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue