From d922589865a8c4f9c0941de9534f1037a1f8f77c Mon Sep 17 00:00:00 2001 From: cigamit Date: Wed, 22 Mar 2017 07:07:03 -0500 Subject: [PATCH] Escaping not proper for Windows --- poller_graphs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poller_graphs.php b/poller_graphs.php index 69d3462..4e2939d 100644 --- a/poller_graphs.php +++ b/poller_graphs.php @@ -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"; }