Skip to content

Commit

Permalink
Escaping not proper for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cigamit committed Mar 22, 2017
1 parent 59020a8 commit d922589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poller_graphs.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ function hmib_dq_graphs($host_id, $query_id, $graph_template_id, $query_type_id,
' --host-id=' . $host_id .
' --snmp-query-id=' . $query_id .
' --snmp-field=' . $field .
' --snmp-value=' . escapeshellarg($field_value);
' --snmp-value=' . cacti_escapeshellarg($field_value);

echo "NOTE: Adding item: '$field_value' " . str_replace("\n", ' ', passthru($command)) . "\n";
}
Expand Down

0 comments on commit d922589

Please sign in to comment.