diff --git a/includes/discovery/functions.inc.php b/includes/discovery/functions.inc.php index e8e51c8ee..180bf8752 100644 --- a/includes/discovery/functions.inc.php +++ b/includes/discovery/functions.inc.php @@ -414,7 +414,7 @@ function discover_processor(&$valid, $device, $oid, $index, $type, $descr, $prec if ($debug) { echo("$device, $oid, $index, $type, $descr, $precision, $current, $entPhysicalIndex, $hrDeviceIndex\n"); } if ($descr) { - $descr = str_replace("\"", "", $descr); + $descr = trim(str_replace("\"", "", $descr)); if (mysql_result(mysql_query("SELECT count(processor_id) FROM `processors` WHERE `processor_index` = '$index' AND `device_id` = '".$device['device_id']."' AND `processor_type` = '$type'"),0) == '0') { $query = "INSERT INTO processors (`entPhysicalIndex`, `hrDeviceIndex`, `device_id`, `processor_descr`, `processor_index`, `processor_oid`, `processor_usage`, `processor_type`, `processor_precision`)