From ed23a0b7a85258b7bf1b6492c83f011a03943e7a Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Wed, 24 Feb 2010 15:22:55 +0000 Subject: [PATCH] remove " from processor descriptions (need to standardize this later) git-svn-id: http://www.observium.org/svn/observer/trunk@942 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/discovery/functions.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/discovery/functions.inc.php b/includes/discovery/functions.inc.php index a8bb862c77..3d923938f7 100644 --- a/includes/discovery/functions.inc.php +++ b/includes/discovery/functions.inc.php @@ -54,6 +54,7 @@ function discover_processor(&$valid_processor, $device, $oid, $index, $type, $de global $config; global $debug; if($debug) { echo("$device, $oid, $index, $type, $descr, $precision, $current, $entPhysicalIndex, $hrDeviceIndex\n"); } if($descr) { + $descr = 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`) values ('$entPhysicalIndex', '$hrDeviceIndex', '".$device['device_id']."', '$descr', '$index', '$oid', '$current', '$type','$precision')";