From 7c14b5a7fc2f5988694747af812d945e6937da6e Mon Sep 17 00:00:00 2001 From: Calvo Date: Thu, 24 Jun 2021 16:36:10 +0200 Subject: [PATCH] Fixed entities on text for custom events --- pandora_server/lib/PandoraFMS/Core.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 42db13c000..bc95982afa 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -4781,23 +4781,23 @@ sub generate_status_event ($$$$$$$$) { } ($event_type, $severity) = ('going_down_normal', 2); - $description = $pa_config->{"text_going_down_normal"}; + $description = safe_output($pa_config->{"text_going_down_normal"}); # Critical } elsif ($status == 1) { ($event_type, $severity) = ('going_up_critical', 4); - $description = $pa_config->{"text_going_up_critical"}; + $description = safe_output($pa_config->{"text_going_up_critical"}); # Warning } elsif ($status == 2) { # From critical if ($known_status == 1) { ($event_type, $severity) = ('going_down_warning', 3); - $description = $pa_config->{"text_going_down_warning"}; + $description = safe_output($pa_config->{"text_going_down_warning"}); } # From normal or warning (after becoming unknown) else { ($event_type, $severity) = ('going_up_warning', 3); - $description = $pa_config->{"text_going_up_warning"}; + $description = safe_output($pa_config->{"text_going_up_warning"}); } } else { # Unknown status