Removed some duplicated html entities

This commit is contained in:
Alejandro Gallardo Escobar 2018-05-22 16:30:33 +02:00
parent 37f19dc9fd
commit 9d558fb7cb
2 changed files with 7 additions and 3 deletions

View File

@ -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;

View File

@ -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,