mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Email alert improvements
- Add ntopng instance name and IP address into the mail subject - Fix notification button not being hidden on email disable - Fix input field formats - Allow to specify an andress in the form "Someone <someone@mailsomehost.com>" b.txt
This commit is contained in:
parent
1adcc909ed
commit
4827e6ab35
5 changed files with 66 additions and 16 deletions
|
|
@ -625,7 +625,7 @@ network_alert_functions_description = {
|
|||
function noHtml(s)
|
||||
if s == nil then return nil end
|
||||
local cleaned = s:gsub("<[aA].->(.-)</[aA]>","%1")
|
||||
:gsub("<[iI].->(.-)</[iI]>","%1")
|
||||
:gsub("%s*<[iI].->(.-)</[iI]>","%1")
|
||||
:gsub("<.->(.-)</.->","%1") -- note: this does not handle nested tags
|
||||
:gsub("^%s*(.-)%s*$", "%1")
|
||||
return cleaned
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue