From 9d558fb7cb0b6fdf0f9e960aebd6b1cdd718b2d3 Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Tue, 22 May 2018 16:30:33 +0200 Subject: [PATCH] Removed some duplicated html entities --- pandora_console/godmode/agentes/configurar_agente.php | 3 ++- pandora_console/godmode/alerts/alert_list.php | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 5cf8e8a03d..0b4b32d819 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -284,8 +284,9 @@ if ($create_agent) { "Url description":"' . $url_description .'", "Quiet":"' . (int)$quiet.'"}'; + $unsafe_alias = io_safe_output($alias); db_pandora_audit("Agent management", - "Created agent $alias", false, true, $info); + "Created agent $unsafe_alias", false, true, $info); } else { $id_agente = 0; diff --git a/pandora_console/godmode/alerts/alert_list.php b/pandora_console/godmode/alerts/alert_list.php index 335766606b..a65b925a44 100644 --- a/pandora_console/godmode/alerts/alert_list.php +++ b/pandora_console/godmode/alerts/alert_list.php @@ -90,14 +90,17 @@ if ($create_alert) { "tagente_modulo","id_agente_modulo", $id_agent_module)); // Audit the creation only when the alert creation is correct + $unsafe_alert_template_name = io_safe_output($alert_template_name); + $unsafe_module_name = io_safe_output($module_name); + $unsafe_agent_alias = io_safe_output($agent_alias); if ($id) { db_pandora_audit("Alert management", - "Added alert '$alert_template_name' for module '$module_name' in agent '$agent_alias'", + "Added alert '$unsafe_alert_template_name' for module '$unsafe_module_name' in agent '$unsafe_agent_alias'", false, false, 'ID: ' . $id); } else { db_pandora_audit("Alert management", - "Fail Added alert '$alert_template_name' for module '$module_name' in agent '$agent_alias'"); + "Fail Added alert '$unsafe_alert_template_name' for module '$unsafe_module_name' in agent '$unsafe_agent_alias'"); } $messageAction = ui_print_result_message ($id,