From fc323a459e2abd15875f3f857e7ee39daaf465ce Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 4 Nov 2008 15:05:46 +0000 Subject: [PATCH] Udpated regex quote git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12898 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../plugins/admin/departments/class_departmentGeneric.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } } -- 2.30.2