From 5d8293df1d8199fc3e0bf0d9461d5660cdae2914 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Thu, 25 May 2023 17:14:23 +0200 Subject: [PATCH] #11250 removed blank space --- pandora_console/include/class/AgentWizard.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/class/AgentWizard.class.php b/pandora_console/include/class/AgentWizard.class.php index 4e65b3f551..6737cf5a34 100644 --- a/pandora_console/include/class/AgentWizard.class.php +++ b/pandora_console/include/class/AgentWizard.class.php @@ -325,7 +325,7 @@ class AgentWizard extends HTML $this->wizardSection = get_parameter('wizard_section', 'snmp_explorer'); $this->idAgent = get_parameter('id_agente', ''); $this->idPolicy = get_parameter('id', ''); - $this->targetIp = get_parameter('targetIp', ''); + $this->targetIp = trim(get_parameter('targetIp', ''), ' '); $this->wmiBinary = $config['wmiBinary']; $this->defaultSNMPValues = (array) json_decode(io_safe_output($config['agent_wizard_defaults']));