[VS] Fix alert description.

This commit is contained in:
Nicolo Maio 2023-11-13 11:01:43 +01:00
parent 19b62fe48f
commit 6187ee30b8
3 changed files with 16 additions and 8 deletions

View file

@ -116,10 +116,10 @@ function alert_vulnerability_scan.format(ifid, alert, alert_type_params)
local scan_type_label = i18n(string.format("hosts_stats.page_scan_hosts.scan_type_list.%s",scan_type))
local report_url = getHttpHost() .. ntop.getHttpPrefix() ..
"/lua/vulnerability_scan.lua?page=report&report_template=vs_result"
local url = string.format("%s/lua/vulnerability_scan.lua?host=%s&scan_type=%s&scan_return_result=true&page=show_result&scan_date=%s",ntop.getHttpPrefix(),alert_type_params.host,scan_type,alert_type_params.date)
local alert_descr = i18n('vulnerability_scan.host_alert', { host = host, msg = msg, url = report_url, scan_type = scan_type_label })
local alert_descr = i18n('vulnerability_scan.host_alert', { host = host, msg = msg, url = url, scan_type = scan_type_label })
return alert_descr
end