- Quote the SNMP v2c community, v3 is already quoted.

- Change the snmpver to double quotes for consistency.
This commit is contained in:
Aaron Daniels
2016-02-04 16:34:56 +10:00
parent cf55f4efd6
commit 4ff92481e4

View File

@@ -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) {