mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Various cosmetic fixes in host and flow pages
Service map is not reported when there are no services listed
This commit is contained in:
parent
cc2df1d66e
commit
9d232d614c
4 changed files with 24 additions and 18 deletions
|
|
@ -234,14 +234,17 @@ function page_utils.safe_html(s)
|
|||
return ''
|
||||
end
|
||||
|
||||
return string.gsub(s, "[}{\">/<'&]", {
|
||||
["&"] = "&",
|
||||
["<"] = "<",
|
||||
[">"] = ">",
|
||||
['"'] = """,
|
||||
["'"] = "'",
|
||||
["/"] = "/"
|
||||
ret = string.gsub(s, "[}{\">/<'&]",
|
||||
{
|
||||
["&"] = "&",
|
||||
["<"] = "<",
|
||||
[">"] = ">",
|
||||
['"'] = """,
|
||||
["'"] = "'",
|
||||
["/"] = "/"
|
||||
})
|
||||
|
||||
return(ret)
|
||||
end
|
||||
|
||||
-- #################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue