From: hickert Date: Fri, 6 Oct 2006 07:01:05 +0000 (+0000) Subject: Added much saver base detection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3d10a1c55cf76652abdb65fc92f117ea816e33ea;p=gosa.git Added much saver base detection git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4862 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/ogroups/class_ogroup.inc b/plugins/admin/ogroups/class_ogroup.inc index 45a9b06be..2df483ab5 100644 --- a/plugins/admin/ogroups/class_ogroup.inc +++ b/plugins/admin/ogroups/class_ogroup.inc @@ -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 */