From 10cdcfa9b4005b438089cd9ebfebeaf2f054164a Mon Sep 17 00:00:00 2001 From: Ahmed Sajid Date: Tue, 26 Jul 2016 16:29:01 -0400 Subject: [PATCH] Fixed Pulse OS whitespace issue Due to the newline etc the minigraphs weren't getting displayed correctly. --- includes/polling/os/pulse.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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';