From e99572e63a4c24e7c459d5b7439365054a38067b Mon Sep 17 00:00:00 2001 From: vgilc Date: Tue, 20 May 2014 07:20:32 +0000 Subject: [PATCH] 2014-05-20 Vanessa Gil * godmode/agentes/configurar_agente.php: Change double quotes by single in 'WMI query'. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9961 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/godmode/agentes/configurar_agente.php | 2 ++ 2 files changed, 7 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 69d4c0a285..270fc41271 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2014-05-20 Vanessa Gil + + * godmode/agentes/configurar_agente.php: Change double + quotes by single in 'WMI query'. + 2014-05-19 Vanessa Gil * godmode/agentes/planned_downtime.editor.php: Fixed diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index bb7beda17e..1cb71ec2c0 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -876,6 +876,8 @@ if ($update_module || $create_module) { $snmp_community = (string) get_parameter ('snmp_community'); $snmp_oid = (string) get_parameter ('snmp_oid'); + //Change double quotes by single + $snmp_oid = preg_replace('/"/', ''', $snmp_oid); if (empty ($snmp_oid)) { /* The user did not set any OID manually but did a SNMP walk */