Skip to content
Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlene Auger authored and Charlene Auger committed Jul 8, 2020
1 parent c1624f9 commit da72e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion require/commandLine/CommandLine.php
Expand Up @@ -32,7 +32,7 @@ public function get_mib_oid($file) {
$champs = array('SNMP_MIB_DIRECTORY' => 'SNMP_MIB_DIRECTORY');
$values = look_config_default_values($champs);
$cmd = "snmptranslate -Tz -m ".$values['tvalue']['SNMP_MIB_DIRECTORY']."/".$file;
$result_cmd = shell_exec($cmd);
$result_cmd = shell_exec(escapeshellcmd($cmd));
$result_cmd = preg_split("/\r\n|\n|\r/", $result_cmd);
$result_cmd = str_replace('"', "", $result_cmd);

Expand Down

0 comments on commit da72e0f

Please sign in to comment.