From 69a4a0f63cd2708624d8d1ddbfe9b48cb543ddf0 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Tue, 25 Jan 2011 11:42:47 +0000 Subject: [PATCH] fix interface descriptions, at least on windows - patch by Geert git-svn-id: http://www.observium.org/svn/observer/trunk@1772 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/discovery/ports.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/discovery/ports.inc.php b/includes/discovery/ports.inc.php index ceefd4d8a..fef1fd5e3 100755 --- a/includes/discovery/ports.inc.php +++ b/includes/discovery/ports.inc.php @@ -16,7 +16,7 @@ $interface_added = 0; foreach(explode("\n", $ports) as $entry){ $entry = trim($entry); - list($ifIndex, $ifDescr) = explode("||", $entry); + list($ifIndex, $ifDescr) = explode("||", $entry, 2); if(!strstr($entry, "irtual")) { $if = trim(strtolower($ifDescr));