Remove duplicate domain name on alert info message. (#7222) (#7234)

This commit is contained in:
Nicolò Maio 2023-02-14 18:05:36 +01:00 committed by GitHub
parent c38976c13e
commit 3b2b52d16e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -524,7 +524,9 @@ function alert_utils.formatFlowAlertMessage(ifid, alert, alert_json, add_score)
if alert_risk > 0 then
msg = string.format("%s %s", msg, flow_risk_utils.get_documentation_link(alert_risk))
local info_msg = alert_utils.get_flow_risk_info(alert_risk, alert_json)
if not isEmptyString(info_msg) then
-- Add check info_msg ~= alert.info to avoid duplicated in description msg
if (not isEmptyString(info_msg) and info_msg ~= alert.info) then
msg = string.format("%s [%s]", msg, info_msg)
end
end