From 5d8293df1d8199fc3e0bf0d9461d5660cdae2914 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Thu, 25 May 2023 17:14:23 +0200 Subject: [PATCH 1/2] #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'])); From 68c9328b4e43f3bbe4cdf4d8ed8e2bc7c8b944e3 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Fri, 26 May 2023 10:51:26 +0200 Subject: [PATCH 2/2] #11250 removed blank space 2 --- 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 6737cf5a34..2278cae9d4 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 = trim(get_parameter('targetIp', ''), ' '); + $this->targetIp = io_safe_input(trim(io_safe_output(get_parameter('targetIp', '')))); $this->wmiBinary = $config['wmiBinary']; $this->defaultSNMPValues = (array) json_decode(io_safe_output($config['agent_wizard_defaults']));