From: hickert Date: Tue, 4 Nov 2008 15:05:46 +0000 (+0000) Subject: Udpated regex quote X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fc323a459e2abd15875f3f857e7ee39daaf465ce;p=gosa.git Udpated regex quote git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12898 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/departments/class_departmentGeneric.inc b/gosa-core/plugins/admin/departments/class_departmentGeneric.inc index 4be01cdde..b7d981530 100644 --- a/gosa-core/plugins/admin/departments/class_departmentGeneric.inc +++ b/gosa-core/plugins/admin/departments/class_departmentGeneric.inc @@ -159,9 +159,8 @@ class department extends plugin }else{ $tmp = array(); foreach($bases as $dn=>$base){ - $fixed = str_replace("/","\\",$this->dn); /* Only attach departments which are not a subtree of this one */ - if(!preg_match("/".$fixed."/",$dn)){ + if(!preg_match("/".preg_quote($this->dn)."/",$dn)){ $tmp[$dn]=$base; } }