ℹ️ Your data is safe here... unless you make the SNIP gods angry. And let's just say they have a really bad sense of humor.

From Melodic Lechwe, 7 Years ago, written in Plain Text.
Embed
  1. diff --git a/includes/snmp.inc.php b/includes/snmp.inc.php
  2. index 6ace36283..fb3680ea1 100644
  3. --- a/includes/snmp.inc.php
  4. +++ b/includes/snmp.inc.php
  5. @@ -220,7 +220,8 @@ function snmp_get_multi_oid($device, $oids, $options = '-OUQn', $mib = null, $mi
  6.      }
  7.  
  8.      $cmd = gen_snmpget_cmd($device, $oids, $options, $mib, $mibdir);
  9. -    $data = trim(external_exec($cmd));
  10. +    $data = external_exec($cmd);
  11. +    $data = trim($data, "\" \n\r");
  12.  
  13.      $array = array();
  14.      foreach (explode("\n", $data) as $entry) {
  15.  
captcha