X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Ffunctions_FAI.inc;h=781f66c93386b5cc222b33aa0502d6f335e9bad7;hb=3e4be8c6a8a23bdeaada8a873ca63284c75e7d90;hp=2c9297cad61318ec18086630e0982d10710fb70a;hpb=cb20ea359185bd3d912dfdde1bddae0911ddc8cb;p=gosa.git diff --git a/include/functions_FAI.inc b/include/functions_FAI.inc index 2c9297cad..781f66c93 100644 --- a/include/functions_FAI.inc +++ b/include/functions_FAI.inc @@ -575,9 +575,8 @@ function get_previous_releases_of_this_release($dn,$flat) $ret = array(); /* Explode dns into pieces, to be able to build parent dns */ -# $dns_to_check = ldap_explode_dn(str_ireplace(",".$config->current['BASE'],"",$dn),0); - $dns_to_check = ldap_explode_dn(preg_replace("/".normalizePreg(",".$config->current['BASE'])."/i","",$dn),0); - echo "Replace ldap_explode_dn it is evil, it changes characters within result...
"; +# $dns_to_check = gosa_ldap_explode_dn(str_ireplace(",".$config->current['BASE'],"",$dn),0); + $dns_to_check = gosa_ldap_explode_dn(preg_replace("/".normalizePreg(",".$config->current['BASE'])."/i","",$dn)); if(!is_array($dns_to_check)){ return; @@ -682,9 +681,8 @@ function get_release_dn($Current_DN) $ldap->cd($config->current['BASE']); /* Split dn into pices */ -# $dns_to_check = ldap_explode_dn(str_ireplace(",".$config->current['BASE'],"",$Current_DN),0); - $dns_to_check = ldap_explode_dn(preg_replace("/".normalizePreg(",".$config->current['BASE'])."/i","",$Current_DN),0); - echo "Replace ldap_explode_dn it is evil, it changes characters within result...
"; +# $dns_to_check = gosa_ldap_explode_dn(str_ireplace(",".$config->current['BASE'],"",$Current_DN),0); + $dns_to_check = gosa_ldap_explode_dn(preg_replace("/".normalizePreg(",".$config->current['BASE'])."/i","",$Current_DN)); if(!is_array($dns_to_check)){ return;