fix: Stripslashes from memcached polling application data #5265 (#5704)

This commit is contained in:
Neil Lathwood
2017-02-01 06:41:42 +00:00
committed by Tony Murray
parent 6bc7b1991e
commit 5cdaee16f6

View File

@@ -7,7 +7,7 @@ if (!empty($agent_data['app']['memcached'])) {
} else {
$oid = '.1.3.6.1.4.1.8072.1.3.2.3.1.2.9.109.101.109.99.97.99.104.101.100';
$result = snmp_get($device, $oid, '-Oqv');
$result = unserialize(str_replace("<<<app-memcached>>>\n", '', $result));
$result = unserialize(stripslashes(str_replace("<<<app-memcached>>>\n", '', $result)));
$data = reset($result);
}