Code

Added dn ic conversation
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Nov 2009 16:25:58 +0000 (16:25 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Nov 2009 16:25:58 +0000 (16:25 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14782 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc

index a6cb616bb099028804c6dd97c8b49f9a7a642824..9e5b60f79b0962d8426a6e8929d31e9a286c5d9f 100644 (file)
@@ -154,12 +154,12 @@ class appgroup extends plugin
           department release.
        */
       foreach($res as $attrs){
-        if(preg_match("/".get_ou('applicationRDN')."/",$attrs['dn'])){
+        if(preg_match("/".get_ou('applicationRDN')."/i",$attrs['dn'])){
 
           /* Parse all returned departments dns into a useable type.
              (ou=1.0.0,ou=halut,ou=apps  ==> halue/1.0.0)
            */
-          $bb     = preg_replace("/".get_ou('applicationRDN').".*/","",$attrs['dn']);
+          $bb     = preg_replace("/".preg_quote(get_ou('applicationRDN'), '/').".*/i","",$attrs['dn']);
           $parts  = array_reverse(split("ou=",$bb));
 
           $str ="";