Code

Allow '/' in Base-DN config (#4192)
authorlhm-gosa <lhm-gosa@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 4 Feb 2010 15:34:22 +0000 (15:34 +0000)
committerlhm-gosa <lhm-gosa@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 4 Feb 2010 15:34:22 +0000 (15:34 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15589 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-core/include/class_config.inc

index 9de15a949eb3e3425a3b6bbe69d1eb69c6500c99..2338ce7aac8ffd84a71e65bcbabd1b2f44218dc3 100644 (file)
@@ -381,8 +381,8 @@ class config  {
       $bases= array();
       $servers= array();
       foreach ($this->current['REFERRAL'] as $ref){
-        $server= preg_replace('%^(.*)/[^/]+$%', '\\1', $ref['URI']);
-        $base= preg_replace('%^.*/([^/]+)$%', '\\1', $ref['URI']);
+        $server= preg_replace('%^(.*://[^/]+)/.*$%', '\\1', $ref['URI']);
+        $base= preg_replace('%^.*://[^/]+/(.*)$%', '\\1', $ref['URI']);
         $bases[$base]= strlen($base);
         $servers[$base]= $server;
       }