mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added minimal json encoding function
Modified bash path in ntopng-add-user.sh
This commit is contained in:
parent
4b9a3744a4
commit
89d6fa301a
2 changed files with 13 additions and 1 deletions
|
|
@ -2128,6 +2128,16 @@ end
|
|||
|
||||
-- ###############################################
|
||||
|
||||
-- TODO: improve this function
|
||||
function jsonencode(what)
|
||||
what = string.gsub(what, '"', "'")
|
||||
what = string.gsub(what, "\n", " ")
|
||||
what = string.gsub(what, "\r", " ")
|
||||
return(what)
|
||||
end
|
||||
|
||||
-- ###############################################
|
||||
|
||||
function formatWebSite(site)
|
||||
return("<A target=\"_blank\" HREF=http://"..site..">"..site.."</A> <i class=\"fa fa-external-link\"></i></th>")
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue