diff --git a/pandora_console/godmode/reporting/graphs.php b/pandora_console/godmode/reporting/graphs.php index 155eb560db..958819a95b 100644 --- a/pandora_console/godmode/reporting/graphs.php +++ b/pandora_console/godmode/reporting/graphs.php @@ -290,7 +290,7 @@ $table_aux = new stdClass(); foreach ($result_graphs as $graph) { $data = []; - $data[0] = ''.ui_print_truncate_text(io_safe_output($graph['name']), 70).''; + $data[0] = ''.ui_print_truncate_text($graph['name'], 70).''; $data[1] = ui_print_truncate_text($graph['description'], 70); diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 7bffd6087d..44b6651c3b 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -190,6 +190,8 @@ function reporting_make_reporting_data( $metaconsole_on = is_metaconsole(); $index_content = 0; foreach ($contents as $content) { + $content['name'] = io_safe_input($content['name']); + $content['description'] = io_safe_input($content['description']); if (!empty($content['id_agent_module']) && !empty($content['id_agent']) && tags_has_user_acl_tags($config['id_user']) ) { @@ -7640,7 +7642,7 @@ function reporting_custom_graph( $return['title'] = $content['name']; $return['landscape'] = $content['landscape']; $return['pagebreak'] = $content['pagebreak']; - $return['subtitle'] = io_safe_output($graph['name']); + $return['subtitle'] = $graph['name']; $return['agent_name'] = $agent_alias; $return['module_name'] = $module_name; $return['description'] = $content['description']; diff --git a/pandora_console/include/functions_reporting_html.php b/pandora_console/include/functions_reporting_html.php index ac7ee7cd21..b81024559f 100644 --- a/pandora_console/include/functions_reporting_html.php +++ b/pandora_console/include/functions_reporting_html.php @@ -130,7 +130,7 @@ function html_do_report_info($report) $html .= ' - '.__('Description').': '.io_safe_output($report['description']).' + '.__('Description').': '.htmlspecialchars($report['description']).' '.'';