From 53f656df8496ad1471ae6c2e1114cec4d00e2669 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 16 Feb 2011 16:17:45 +0000 Subject: [PATCH] 2011-02-16 Miguel de Dios * include/ajax/visual_console_builder.ajax.php: fixed other safe_ouput in the editor. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3879 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ .../include/ajax/visual_console_builder.ajax.php | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 1f69d0d7b7..a666f4521e 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-02-16 Miguel de Dios + + * include/ajax/visual_console_builder.ajax.php: fixed other safe_ouput in + the editor. + 2011-02-16 Miguel de Dios * include/functions_visual_map.php: added lost safe_ouput in the extract diff --git a/pandora_console/include/ajax/visual_console_builder.ajax.php b/pandora_console/include/ajax/visual_console_builder.ajax.php index 0ac2a8c53f..6484f19e12 100644 --- a/pandora_console/include/ajax/visual_console_builder.ajax.php +++ b/pandora_console/include/ajax/visual_console_builder.ajax.php @@ -177,14 +177,14 @@ switch ($action) { case 'label': case 'icon': $elementFields = get_db_row_filter('tlayout_data', array('id' => $id_element)); - $elementFields['agent_name'] = get_agent_name($elementFields['id_agent']); + $elementFields['agent_name'] = safe_output(get_agent_name($elementFields['id_agent'])); //Make the html of select box of modules about id_agent. if ($elementFields['id_agent'] != 0) { - $modules = get_agent_modules ($elementFields['id_agent'], false, array('disabled' => 0, 'id_agente' => $elementFields['id_agent'])); + $modules = get_agent_modules($elementFields['id_agent'], false, array('disabled' => 0, 'id_agente' => $elementFields['id_agent'])); $elementFields['modules_html'] = ''; foreach ($modules as $id => $name) { - $elementFields['modules_html'] .= ''; + $elementFields['modules_html'] .= ''; } } else {