From 5a169fc85e7376d1aeb61ee26f1fdd18359cea2f Mon Sep 17 00:00:00 2001 From: Chuyen Vo <73516+vdchuyen@users.noreply.github.com> Date: Mon, 21 Oct 2019 20:21:30 +0700 Subject: [PATCH] Strip backslash return from snmp_get extend (#10724) * Strip backslash return from snmp_get extend * Update powerdns-recursor.inc.php * Update powerdns-recursor.inc.php --- includes/polling/applications/powerdns-recursor.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/polling/applications/powerdns-recursor.inc.php b/includes/polling/applications/powerdns-recursor.inc.php index 6d6afb580b..fea5800df4 100644 --- a/includes/polling/applications/powerdns-recursor.inc.php +++ b/includes/polling/applications/powerdns-recursor.inc.php @@ -48,7 +48,7 @@ if ($agent_data['app'][$name]) { } else { // nsExtendOutputFull."powerdns-recursor" $oid = '.1.3.6.1.4.1.8072.1.3.2.3.1.2.17.112.111.119.101.114.100.110.115.45.114.101.99.117.114.115.111.114'; - $data = snmp_get($device, $oid, '-Oqv'); + $data = stripslashes(snmp_get($device, $oid, '-Oqv')); } if (!empty($data)) {