From 7afc407ef604cfec25144fa9404e6eb250ce3c0a Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 21 Sep 2009 13:06:29 +0000 Subject: [PATCH] Fixed regex for opsi hosts git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14299 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/systems/admin/systems/class_systemManagement.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index d728aa4eb..acc045d32 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -1470,8 +1470,9 @@ class systems extends plugin If there is a samba host, then merge it with the opsi host, to avoid duplicate entries. */ + $oRex = preg_replace("/\*/",".*",$this->DivListSystem->Regex); foreach($opsi_clients as $entry){ - if(isset($opsi_map[$entry['cn'][0]]) || !preg_match("/".$this->DivListSystem->Regex."/", $entry['cn'][0])){ + if(isset($opsi_map[$entry['cn'][0]]) || !preg_match("/".preg_quote($oRex)."/", $entry['cn'][0])){ continue; } $terminal = $entry; -- 2.30.2