Code

Re-introduce incasesensitive replace
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Nov 2009 16:22:43 +0000 (16:22 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Nov 2009 16:22:43 +0000 (16:22 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14781 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/groups/class_groupGeneric.inc
gosa-core/plugins/admin/ogroups/class_ogroup.inc

index 5c9e62da6a87754a386127479926b361e153d434..8440c1c08f5cb2840511ea70501dacd589e575ea 100644 (file)
@@ -192,7 +192,7 @@ class group extends plugin
     } else {
 
       /* Get object base */
-      $this->base =preg_replace ("/^[^,]+,".preg_quote(get_groups_ou(), '/')."/","",$this->dn);
+      $this->base =preg_replace ("/^[^,]+,".preg_quote(get_groups_ou(), '/')."/i","",$this->dn);
     }
     $this->orig_base = $this->base;
 
index 1a87f3aa3d78d2ae48b297b88adc2abb275fc8e2..beee3e503136754e0de664ed3de0133fe65c88d9 100644 (file)
@@ -124,7 +124,7 @@ class ogroup extends plugin
     if ($this->dn == "new"){
       $this->base = session::get('CurrentMainBase');
     } else {
-      $this->base= preg_replace("/^[^,]+,".preg_quote(get_ou("ogroupRDN"), '/')."/","",$this->dn);
+      $this->base= preg_replace("/^[^,]+,".preg_quote(get_ou("ogroupRDN"), '/')."/i","",$this->dn);
 
       /* Is this account a trustAccount? */
       if ($this->is_account && isset($this->attrs['trustModel'])){