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']));