diff --git a/includes/polling/os/pulse.inc.php b/includes/polling/os/pulse.inc.php index a868bc8afe..4bf412624c 100644 --- a/includes/polling/os/pulse.inc.php +++ b/includes/polling/os/pulse.inc.php @@ -10,8 +10,8 @@ * the source code distribution for details. */ -$version = trim(snmp_get($device, "productVersion.0", "-OQv", "PULSESECURE-PSG-MIB"),'"'); -$hardware = "Juniper " . trim(snmp_get($device, "productName.0", "-OQv", "PULSESECURE-PSG-MIB"),'"'); +$version = preg_replace('/[\r\n\"]+/',' ',snmp_get($device, "productVersion.0", "-OQv", "PULSESECURE-PSG-MIB")); +$hardware = "Juniper " . preg_replace('/[\r\n\"]+/',' ',snmp_get($device, "productName.0", "-OQv", "PULSESECURE-PSG-MIB")); $hostname = trim($poll_device['sysName'],'"'); $usersrrd = $config['rrd_dir'].'/'.$device['hostname'].'/pulse_users.rrd';