Code

Updated for broken dns
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Nov 2009 16:50:49 +0000 (16:50 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Nov 2009 16:50:49 +0000 (16:50 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14788 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/generic/class_user.inc

index 84103a3a06ad7202a29908458c1658b0e2e72b46..93178928e48995916b25d42f63721592448b9a2a 100644 (file)
@@ -1448,7 +1448,7 @@ class user extends plugin
     }
 
     /* Get base */
-    $this->base= preg_replace('/^[^,]+,'.get_people_ou().'/i', '', $dn);
+    $this->base= preg_replace('/^[^,]+,'.preg_quote(get_people_ou(), '/').'/i', '', $dn);
 
     if($this->governmentmode){