From 7825c77af141dd7fb517c267e91b27e93765da4e Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 7 Jun 2006 14:23:01 +0000 Subject: [PATCH] Fixed NFS server array git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3673 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_config.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/class_config.inc b/include/class_config.inc index 88754e069..d1f47b457 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -391,13 +391,15 @@ class config { $ldap->search ("(&(objectClass=goShareServer)(goExportEntry=*))"); while ($attrs= $ldap->fetch()){ for ($i= 0; $i<$attrs["goExportEntry"]["count"]; $i++){ - $path= preg_replace ("/\s.*$/", "", $attrs["goExportEntry"][$i]); + if(!preg_match('/^[^|]+\|[^|]+\|NFS\|.*$/', $attrs["goExportEntry"][$i])){ + continue; + } + $path= preg_replace ("/^[^|]+\|[^|]+\|[^|]+\|[^|]+\|([^|]+).*$/", '\1', $attrs["goExportEntry"][$i]); $tmp[]= $attrs["cn"][0].":$path"; } } $this->data['SERVERS']['NFS']= $tmp; - /* Load Terminalservers */ $ldap->cd ($this->current['BASE']); $ldap->search ("(objectClass=goTerminalServer)"); -- 2.30.2