Merge pull request #2927 from adaniels21487/issue-2448

Quote snmp v2c community
This commit is contained in:
Neil Lathwood
2016-02-05 10:45:32 +00:00
+2 -2
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) {