mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Show SMTP communication log if verbose trace is enabled
This commit is contained in:
parent
6028bd5c7e
commit
9cf637e7d5
3 changed files with 55 additions and 23 deletions
|
|
@ -617,17 +617,6 @@ function noHtml(s)
|
|||
return cleaned
|
||||
end
|
||||
|
||||
function unescapeHtmlEntities(str)
|
||||
str = string.gsub( str, '<', '<' )
|
||||
str = string.gsub( str, '>', '>' )
|
||||
str = string.gsub( str, '"', '"' )
|
||||
str = string.gsub( str, ''', "'" )
|
||||
str = string.gsub( str, '&#(%d+);', function(n) return string.char(n) end )
|
||||
str = string.gsub( str, '&#x(%d+);', function(n) return string.char(tonumber(n,16)) end )
|
||||
str = string.gsub( str, '&', '&' ) -- Be sure to do this after all others
|
||||
return str
|
||||
end
|
||||
|
||||
function alertSeverityLabel(v, nohtml)
|
||||
local res = _handleArray(alert_level_keys, tonumber(v))
|
||||
if res ~= nil and nohtml == true then res = noHtml(res) end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue