From 6965684a7e9c0e3a51058c0e822b23f275977ee9 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 22 Jun 2007 10:56:56 +0000 Subject: [PATCH] Updated FAI package filter git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6664 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiPackageEntry.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/admin/fai/class_faiPackageEntry.inc b/plugins/admin/fai/class_faiPackageEntry.inc index a8c78aeb3..ce2b6e98a 100644 --- a/plugins/admin/fai/class_faiPackageEntry.inc +++ b/plugins/admin/fai/class_faiPackageEntry.inc @@ -118,14 +118,17 @@ $CHKS = "searchStrPKG)); + $cnt = 0; foreach($pkgs as $pkg){ if($cnt > 200) { print_red(sprintf(_("Your specified search string '%s' returned too many results. Only the first 200 entries are shown, to keep the memory usage low."),$this->searchStrPKG)); break; } - if((preg_match("/^".str_replace("*",".*",$this->searchStrPKG)."/i",$pkg[0]))|| - (preg_match("/^".str_replace("*",".*",$this->searchStrPKG)."/i",$pkg[3]))){ + if((preg_match("/^".$search_str."/i",$pkg[0]))|| + (preg_match("/^".$search_str."/i",$pkg[3]))){ if($this->categories[$pkg[2]]){ if(in_array($pkg[0],$this->selected)){ $check = " checked "; -- 2.30.2