From 4ff92481e46a2d13a06016e9445e260466f3c7c1 Mon Sep 17 00:00:00 2001 From: Aaron Daniels Date: Thu, 4 Feb 2016 16:34:56 +1000 Subject: [PATCH] - Quote the SNMP v2c community, v3 is already quoted. - Change the snmpver to double quotes for consistency. --- includes/snmp.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/snmp.inc.php b/includes/snmp.inc.php index 7f806d867..d2d485998 100644 --- a/includes/snmp.inc.php +++ b/includes/snmp.inc.php @@ -776,8 +776,8 @@ function snmp_gen_auth(&$device) { } } else if ($device['snmpver'] === 'v2c' or $device['snmpver'] === 'v1') { - $cmd = ' -'.$device['snmpver']; - $cmd .= ' -c '.$device['community']; + $cmd = " -".$device['snmpver']; + $cmd .= " -c '".$device['community']."'"; } else { if ($debug) {