From: lhm-gosa Date: Thu, 4 Feb 2010 15:34:22 +0000 (+0000) Subject: Allow '/' in Base-DN config (#4192) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=34e5f61585cc5f510d41e5c30b0797ced75fdf53;p=gosa.git Allow '/' in Base-DN config (#4192) git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15589 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-core/include/class_config.inc b/trunk/gosa-core/include/class_config.inc index 9de15a949..2338ce7aa 100644 --- a/trunk/gosa-core/include/class_config.inc +++ b/trunk/gosa-core/include/class_config.inc @@ -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; }