From 0d36244edab531ce015176fdb858f3137c898969 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Fri, 4 Aug 2017 08:03:03 -0500 Subject: [PATCH] Fix string quoting in snmp trim (#7120) --- includes/snmp.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/snmp.inc.php b/includes/snmp.inc.php index c39b5cc703..796460affb 100644 --- a/includes/snmp.inc.php +++ b/includes/snmp.inc.php @@ -368,7 +368,7 @@ function snmpwalk_cache_oid($device, $oid, $array, $mib = null, $mibdir = null, foreach (explode("\n", $data) as $entry) { list($oid,$value) = explode('=', $entry, 2); $oid = trim($oid); - $value = trim($value, '\" \\\n\r'); + $value = trim($value, "\" \\\n\r"); list($oid, $index) = explode('.', $oid, 2); if (!strstr($value, 'at this OID') && isset($oid) && isset($index)) { $array[$index][$oid] = $value;