From: hickert Date: Fri, 22 Jun 2007 10:56:48 +0000 (+0000) Subject: Udpated FAIPackage filter X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ec18e4fd9fc3ac0f36edeb13795223ef240a3ce1;p=gosa.git Udpated FAIPackage filter git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6663 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiPackageEntry.inc b/plugins/admin/fai/class_faiPackageEntry.inc index aa6899983..b6af8aee8 100644 --- a/plugins/admin/fai/class_faiPackageEntry.inc +++ b/plugins/admin/fai/class_faiPackageEntry.inc @@ -113,14 +113,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 ";