From 7031e87f546c51416fc962d9acc7809a49640f44 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 16 Feb 2011 16:06:42 +0000 Subject: [PATCH] 2011-02-16 Miguel de Dios * include/functions_visual_map.php: added lost safe_ouput in the extract DB fields. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3877 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_visual_map.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 4aa5e366c9..1f69d0d7b7 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-02-16 Miguel de Dios + + * include/functions_visual_map.php: added lost safe_ouput in the extract + DB fields. + 2011-02-16 Miguel de Dios * include/functions_visual_map.php: added function "createInternalNameItem" diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index 4aec6057bf..d2a848d3f8 100644 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -966,7 +966,7 @@ function createInternalNameItem($label = null, $type, $image, $agent = null, $id if (!empty($agent)) { $text .= " (" . printTruncateText($agent, 10, false); - $moduleName = get_db_value('nombre', 'tagente_modulo', 'id_agente_modulo', $id_module); + $moduleName = safe_output(get_db_value('nombre', 'tagente_modulo', 'id_agente_modulo', $id_module)); if (!empty($moduleName)) { $text .= " - " . printTruncateText($moduleName, 10, false); } @@ -992,7 +992,7 @@ function get_items_parents($idVisual) { foreach ($items as $item) { $agent = null; if ($item['id_agent'] != 0) { - $agent = get_agent_name($item['id_agent']); + $agent = safe_output(get_agent_name($item['id_agent'])); } $return[$item['id']] = createInternalNameItem($item['label'],