From a12851d0a2c4b0713ce92db816e6c958b6f68268 Mon Sep 17 00:00:00 2001 From: alejandro-campos Date: Wed, 1 Apr 2020 16:37:30 +0200 Subject: [PATCH] fix broken snmp modules real time graphs when community string has certain chars --- pandora_console/extensions/realtime_graphs.php | 2 +- pandora_console/include/functions_modules.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/extensions/realtime_graphs.php b/pandora_console/extensions/realtime_graphs.php index e487d49ee5..8940b36c2d 100644 --- a/pandora_console/extensions/realtime_graphs.php +++ b/pandora_console/extensions/realtime_graphs.php @@ -199,8 +199,8 @@ function pandora_realtime_graphs() html_print_input_hidden('custom_action', urlencode(base64_encode(' ')), false); html_print_input_hidden('incremental_base', '0'); - echo ''; echo ''; + echo ''; echo ''; // Store servers timezone offset to be retrieved from js diff --git a/pandora_console/include/functions_modules.php b/pandora_console/include/functions_modules.php index 668250b86c..42ac1fe30f 100755 --- a/pandora_console/include/functions_modules.php +++ b/pandora_console/include/functions_modules.php @@ -3308,7 +3308,7 @@ function get_module_realtime_link_graph($module) 'agent_alias' => urlencode(modules_get_agentmodule_agent_alias($module['id_agente_modulo'])), 'module_name' => urlencode($module['nombre']), 'snmp_address' => $module['ip_target'], - 'snmp_community' => $module['snmp_community'], + 'snmp_community' => urlencode($module['snmp_community']), 'snmp_oid' => $module['snmp_oid'], 'snmp_ver' => $module['tcp_send'], 'hide_header' => 1,