Code

Added much saver base detection
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Oct 2006 07:01:05 +0000 (07:01 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Oct 2006 07:01:05 +0000 (07:01 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4862 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/ogroups/class_ogroup.inc

index 45a9b06be81afac68050a0380c3907885e109594..2df483ab58b606018064b85cbf79958f88663431 100644 (file)
@@ -85,7 +85,7 @@ class ogroup extends plugin
     if ($this->dn == "new"){
       $this->base= $_SESSION['CurrentMainBase'];
     } else {
-      $this->base= preg_replace ("/^[^,]+,[^,]+,/", "", $this->dn);
+      $this->base= preg_replace("/^[^,]+,".get_groups_ou()."/","",$str);
     }
 
     /* set permissions */